public function isPresenceRequired($validatePresent = null)
    {
        if ($validatePresent === null) {
            return $this->_validatePresent;
        }

        deprecationWarning(
            'ValidationSet::isPresenceRequired() is deprecated as a setter. ' .
            'Use ValidationSet::requirePresence() instead.'
        );

        return $this->requirePresence($validatePresent);
    }
public function isPresenceRequired($validatePresent = null)
    {
        if ($validatePresent === null) {
            return $this->_validatePresent;
        }

        deprecationWarning(
            'ValidationSet::isPresenceRequired() is deprecated as a setter. ' .
            'Use ValidationSet::requirePresence() instead.'
        );

        return $this->requirePresence($validatePresent);
    }
public function isPresenceRequired ( $ validatePresent = null ) { if ( $ validatePresent === null ) { return $ this -> _validatePresent ; } deprecationWarning ( 'ValidationSet::isPresenceRequired() is deprecated as a setter. ' . 'Use ValidationSet::requirePresence() instead.' ) ; return $ this -> requirePresence ( $ validatePresent ) ; }
Sets whether a field is required to be present in data array.

If no argument is passed the currently set `validatePresent` value will be returned.

@param bool|string|callable|null $validatePresent Deprecated since 3.6.0 ValidationSet::isPresenceRequired() is deprecated as a setter
Use ValidationSet::requirePresence() instead.
@return bool|string|callable
Sets whether a field is required to be present in data array .