src/php/Validator.php
public function validateApiKeys(array $keys)
    {
        if (empty($keys)) {
            throw new InvalidArgumentException(
                'No API keys specified',
                401
            );
        }

        foreach ($keys as $key) {
            $this->validateApiKey($key);
        }

        return $this;
    }
public function validateApiKeys(array $keys)
    {
        if (empty($keys)) {
            throw new InvalidArgumentException(
                'No API keys specified',
                401
            );
        }

        foreach ($keys as $key) {
            $this->validateApiKey($key);
        }

        return $this;
    }
public function validateApiKeys ( array $ keys ) { if ( empty ( $ keys ) ) { throw new InvalidArgumentException ( 'No API keys specified' , 401 ) ; } foreach ( $ keys as $ key ) { $ this -> validateApiKey ( $ key ) ; } return $ this ; }
Validates the given API keys.

@param string[] $keys API keys.

@return $this

@throws InvalidArgumentException Thrown if one of the API keys is invalid.
Validates the given API keys .