/** * Checks if this error was caused for the given argument * * @param AgaviValidationArgument The argument. * * @return bool The result. * * @author Dominik del Bondio <*****@*****.**> * @since 1.0.0 */ public function hasArgument(AgaviValidationArgument $argument) { return isset($this->arguments[$argument->getHash()]); }
/** * Checks whether an argument has been processed by a validator (this * includes arguments which were skipped because their value was not set * and the validator was not required) * * @param AgaviValidationArgument The argument. * * @return bool Whether the argument was validated. * * @author Dominik del Bondio <*****@*****.**> * @since 1.0.0 */ public function isArgumentValidated(AgaviValidationArgument $argument) { return isset($this->argumentResults[$argument->getHash()]); }