public function __construct($name, GithubUser $owner = null) { $this->name = $name; if (null !== $owner) { $this->owner = $owner; } $this->writtenLanguages = new Collection(); }