public function __construct() { // first records don't have dtAdded, we keep it null $this->dtAdded = new DateTime(); $this->isDeprecated = false; }