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;
    }
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;
    }
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 ; }
Sets the "deleted" of the MediaUsageResponse.

@param DateTime $deleted

@return MediaUsageResponse
Sets the deleted of the MediaUsageResponse .