public function __construct($name = null, $author = null, $destination = null, Validator $validator = null) { $this->validator = $validator ?: new Validator(); $this->name = $name; $this->author = $author; $this->destination = $destination; }