public function __construct($name) { $this->name = strtolower($name); $this->creationDate = new \DateTime(); }