示例#1
0
文件: Book.php 项目: bakgat/notos
 public function __construct(Name $name, Isbn $isbn)
 {
     parent::__construct($name);
     $this->setIsbn($isbn);
     $this->authors = new ArrayCollection();
     $this->publishers = new ArrayCollection();
     $this->tags = new ArrayCollection();
 }
示例#2
0
文件: Asset.php 项目: bakgat/notos
 public function __construct(Guid $guid, Name $name, $mime, $organization)
 {
     parent::__construct($name);
     $this->setGuid($guid);
     $this->setPath($guid->toPath());
     $this->setMime($mime);
     $this->setOrganization($organization);
 }
示例#3
0
文件: Image.php 项目: bakgat/notos
 public function __construct(Name $name, $filename)
 {
     parent::__construct($name);
     $this->setFilename($filename);
     $this->setDirectory($filename->directory());
 }
示例#4
0
文件: Game.php 项目: bakgat/notos
 public function __construct(Name $name)
 {
     parent::__construct($name);
     $this->publishers = new ArrayCollection();
     $this->tags = new ArrayCollection();
 }