public function __construct($version) { $this->version = $version; $this->generationDate = new \DateTime(); }