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)
                ));
            }
        }
    }