예제 #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();
 }