Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function isRequiredExistingMethod($object, $methodName, $suppressException = true)
 {
     /* Clear the last error. */
     $this->lastError = null;
     /* If valid just return true. */
     if (Validator::isRequiredExistingMethod($object, $methodName)) {
         return true;
     }
     /* Set the error message. */
     $this->lastError = sprintf('Expected existing method for class \'%s\', \'%s\' given.', is_object($object) ? get_class($object) : sprintf('[NOT AN OBJECT: %s]', gettype($object)), $methodName);
     return $this->validationFailed($suppressException);
 }