original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Sets whether a field is required to be present in data array .