/** * @param array $data * @param Author[] $authors * @param Keyword[] $keywords * @param File[] $files * @param Url[] $urls * @param Citation[] $citations */ public function __construct(array $data, array $authors = array(), array $keywords = array(), array $files = array(), array $urls = array(), array $citations = array()) { parent::__construct($data); $this->setAuthors($authors); $this->setKeywords($keywords); $this->setFiles($files); $this->setUrls($urls); $this->setCitations($citations); }
/** * @param array $data * @param array $roles * @param array $permissions */ public function __construct(array $data, array $roles = array(), array $permissions = array()) { parent::__construct($data); $this->setPermissions($permissions); $this->setRoles($roles); }