Exemple #1
0
 /**
  * @param Package $p
  */
 public function __construct(Package $p)
 {
     parent::__construct();
     $this->_p->Package = $p;
     $this->_p->Unchanged = new ResourceCollection();
     $this->_p->CompileTarget = new ResourceCollection();
 }
Exemple #2
0
 /**
  * @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);
 }