コード例 #1
0
ファイル: CompilerSetup.php プロジェクト: oktopost/aquarium
 /**
  * @param Package $p
  */
 public function __construct(Package $p)
 {
     parent::__construct();
     $this->_p->Package = $p;
     $this->_p->Unchanged = new ResourceCollection();
     $this->_p->CompileTarget = new ResourceCollection();
 }
コード例 #2
0
ファイル: Package.php プロジェクト: oktopost/aquarium
 /**
  * @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();
 }
コード例 #3
0
ファイル: LiteObjectTest.php プロジェクト: oktopost/objection
 /**
  * @param array $data
  */
 public function __construct(array $data = [])
 {
     parent::__construct();
     $this->fromArray($data);
 }