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(); }
/** * @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; }