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(); }
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); }
public function __construct(Name $name, $filename) { parent::__construct($name); $this->setFilename($filename); $this->setDirectory($filename->directory()); }
public function __construct(Name $name) { parent::__construct($name); $this->publishers = new ArrayCollection(); $this->tags = new ArrayCollection(); }