public function merge($actions)
	{
		if (is_string($actions))
		{
			$actions = json_decode($actions, true);
		}

		if (is_array($actions))
		{
			foreach ($actions as $action => $identities)
			{
				$this->mergeAction($action, $identities);
			}
		}
		elseif ($actions instanceof Rules)
		{
			$data = $actions->getData();

			foreach ($data as $name => $identities)
			{
				$this->mergeAction($name, $identities);
			}
		}
	}
public function merge($actions)
	{
		if (is_string($actions))
		{
			$actions = json_decode($actions, true);
		}

		if (is_array($actions))
		{
			foreach ($actions as $action => $identities)
			{
				$this->mergeAction($action, $identities);
			}
		}
		elseif ($actions instanceof Rules)
		{
			$data = $actions->getData();

			foreach ($data as $name => $identities)
			{
				$this->mergeAction($name, $identities);
			}
		}
	}
public function merge ( $ actions ) { if ( is_string ( $ actions ) ) { $ actions = json_decode ( $ actions , true ) ; } if ( is_array ( $ actions ) ) { foreach ( $ actions as $ action => $ identities ) { $ this -> mergeAction ( $ action , $ identities ) ; } } elseif ( $ actions instanceof Rules ) { $ data = $ actions -> getData ( ) ; foreach ( $ data as $ name => $ identities ) { $ this -> mergeAction ( $ name , $ identities ) ; } } }
Method to merge actions with this object.

@param   mixed  $actions  Rule object, an array of actions or a JSON string array of actions.
@return  void
Method to merge actions with this object .