Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public function __construct(Name $name, $filename)
 {
     parent::__construct($name);
     $this->setFilename($filename);
     $this->setDirectory($filename->directory());
 }
Exemplo n.º 4
0
 public function __construct(Name $name)
 {
     parent::__construct($name);
     $this->publishers = new ArrayCollection();
     $this->tags = new ArrayCollection();
 }