protected function toNull($value)
    {
        if ($value === 0 || $value === false || $value === '') {
            return null;
        }
        if ($this->getTypeCheck()->isArray($value) && count($value) === 1) {
            return $this->toNull(reset($value));
        }

        return $value;
    }
protected function toNull($value)
    {
        if ($value === 0 || $value === false || $value === '') {
            return null;
        }
        if ($this->getTypeCheck()->isArray($value) && count($value) === 1) {
            return $this->toNull(reset($value));
        }

        return $value;
    }
protected function toNull ( $ value ) { if ( $ value === 0 || $ value === false || $ value === '' ) { return null ; } if ( $ this -> getTypeCheck ( ) -> isArray ( $ value ) && count ( $ value ) === 1 ) { return $ this -> toNull ( reset ( $ value ) ) ; } return $ value ; }
Convert a value to a null. For example, 0 becomes null.

@param mixed $value

@return null|mixed
Convert a value to a null . For example 0 becomes null .