public function setCreated($created)
    {
        $this->created = $created instanceof \DateTime ? $created->format('Y-m-d H:i:s') : $created;

        return $this;
    }
public function setCreated($created)
    {
        $this->created = $created instanceof \DateTime ? $created->format('Y-m-d H:i:s') : $created;

        return $this;
    }
public function setCreated ( $ created ) { $ this -> created = $ created instanceof \ DateTime ? $ created -> format ( 'Y-m-d H:i:s' ) : $ created ; return $ this ; }
Sets the creation date.

@codeCoverageIgnore

@param type $created

@return self
Sets the creation date .