protected function _validateParams($args, $spec)
    {
        $errors = $this->_getArgsListErrors($args, $spec);
        if ($this->_countIterable($errors)) {
            throw $this->_createValidationFailedException(null, null, null, null, $args, $errors);
        }
    }
protected function _validateParams($args, $spec)
    {
        $errors = $this->_getArgsListErrors($args, $spec);
        if ($this->_countIterable($errors)) {
            throw $this->_createValidationFailedException(null, null, null, null, $args, $errors);
        }
    }
protected function _validateParams ( $ args , $ spec ) { $ errors = $ this -> _getArgsListErrors ( $ args , $ spec ) ; if ( $ this -> _countIterable ( $ errors ) ) { throw $ this -> _createValidationFailedException ( null , null , null , null , $ args , $ errors ) ; } }
Validates a function or method's arguments according to the method's parameter specification.

@since [*next-version*]

@param array                                      $args The arguments to validate.
@param ReflectionParameter[]|stdClass|Traversable $spec The parameter specification.
Validates a function or method s arguments according to the method s parameter specification .