public function setCreated($created = null) { if (!$created instanceof \DateTime) { $created = new \DateTime("now"); } $this->created = $created; $this->setModified(); return $this; }