/** * @param Package $p */ public function __construct(Package $p) { parent::__construct(); $this->_p->Package = $p; $this->_p->Unchanged = new ResourceCollection(); $this->_p->CompileTarget = new ResourceCollection(); }
/** * @param string $name */ public function __construct($name) { parent::__construct(); $this->_p->Name = $name; $this->_p->Path = explode(self::PACKAGE_PATH_SEPARATOR, $name); $this->_p->Requires = new ResourceCollection(); $this->_p->Inscribed = new ResourceCollection(); $this->_p->Styles = new ResourceCollection(); $this->_p->Scripts = new ResourceCollection(); $this->_p->Views = new ResourceCollection(); }
/** * @param array $data */ public function __construct(array $data = []) { parent::__construct(); $this->fromArray($data); }