Exemplo n.º 1
0
 public function __construct($data, $trees, $actions, $version = self::SERIAL_VERSION)
 {
     parent::__construct($data['id'], $version);
     $this->data = $data;
     $this->trees = $trees;
     $this->actions = $actions;
     $this->migrateDataFromLegacyFormat();
 }
Exemplo n.º 2
0
 /**
  * @param $data
  * @param $sections
  * @param int $version
  */
 public function __construct($data, $sections, $version = self::SERIAL_VERSION)
 {
     parent::__construct($data['id'], $version);
     $this->data = $data;
     $this->children = $sections;
 }