You are here

public function RulesIdentifiableDataWrapper::__construct in Rules 7.2

Construct a new wrapper object.

Parameters

$type: The type of the passed data.

$data: (optional) The data to wrap or its identifier.

array $info: (optional) Used internally to pass info about properties down the tree.

Overrides EntityStructureWrapper::__construct

File

includes/rules.state.inc, line 688
Contains the state and data related stuff.

Class

RulesIdentifiableDataWrapper
A wrapper class similar to the EntityDrupalWrapper, but for non-entities.

Code

public function __construct($type, $data = NULL, $info = array()) {
  parent::__construct($type, $data, $info);
  $this
    ->setData($data);
}