public function validateArrayArgument($argname, array $value, $type, $nullable = false)
    {
        foreach ($value as $element) {
            if (!$this->checkType($element, $type, $nullable)) {
                throw new OperationArgumentException(sprintf(
                    'Method %s() expects all of $%s elements to be %s, found %s.',
                    $this->operation,
                    $argname,
                    $type,
                    gettype($element)
                ));
            }
        }
    }
public function validateArrayArgument($argname, array $value, $type, $nullable = false)
    {
        foreach ($value as $element) {
            if (!$this->checkType($element, $type, $nullable)) {
                throw new OperationArgumentException(sprintf(
                    'Method %s() expects all of $%s elements to be %s, found %s.',
                    $this->operation,
                    $argname,
                    $type,
                    gettype($element)
                ));
            }
        }
    }
public function validateArrayArgument ( $ argname , array $ value , $ type , $ nullable = false ) { foreach ( $ value as $ element ) { if ( ! $ this -> checkType ( $ element , $ type , $ nullable ) ) { throw new OperationArgumentException ( sprintf ( 'Method %s() expects all of $%s elements to be %s, found %s.' , $ this -> operation , $ argname , $ type , gettype ( $ element ) ) ) ; } } }
Validate elements in an argument in the type of array.
@param  string $argname
@param  array $value
@param  string $type
@param  bool $nullable
@throws \Gamegos\NoSql\Storage\Exception\OperationArgumentException
Validate elements in an argument in the type of array .