public function setDeleted($deleted)
    {
        if ($deleted instanceof DateTime) {
            $this->deleted = $deleted;
        } else {
            try {
                $this->deleted = new DateTime($deleted);
            } catch (\Exception $e) {
                $this->deleted = null;
            }
        }

        return $this;
    }