for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ApiBundle\Domain\ValueObject;
trait EntityDateTrait
{
protected $created;
protected $updated;
/**
* @return \DateTime
*/
public function getCreated()
return $this->created;
}
public function setCreated()
$this->created = new \DateTime('now');
public function getUpdated()
return $this->updated;
public function setUpdated()
$this->updated = new \DateTime('now');