SoftDelete/SoftDeletableTrait.php
public function setDeleted(bool $deleted)
    {
        if(!is_bool($deleted)) {
            throw new InvalidParameterTypeException(get_class($this), __METHOD__, 1, 'boolean', gettype($deleted));
        }

        $this->deleted = $deleted;

        return $this;
    }
public function setDeleted(bool $deleted)
    {
        if(!is_bool($deleted)) {
            throw new InvalidParameterTypeException(get_class($this), __METHOD__, 1, 'boolean', gettype($deleted));
        }

        $this->deleted = $deleted;

        return $this;
    }
public function setDeleted ( bool $ deleted ) { if ( ! is_bool ( $ deleted ) ) { throw new InvalidParameterTypeException ( get_class ( $ this ) , __METHOD__ , 1 , 'boolean' , gettype ( $ deleted ) ) ; } $ this -> deleted = $ deleted ; return $ this ; }
Sets Instance to deleted or not deleted

@param boolean $deleted

@return \Thuata\ComponentBundle\SoftDelete\SoftDeleteInterface

@throws \Thuata\ComponentBundle\Exception\InvalidParameterTypeException
Sets Instance to deleted or not deleted