src/ClientResolver.php
private function throwRequired(array $args)
    {
        $missing = [];
        foreach ($this->argDefinitions as $k => $a) {
            if (empty($a['required'])
                || isset($a['default'])
                || isset($args[$k])
            ) {
                continue;
            }
            $missing[] = $this->getArgMessage($k, $args, true);
        }
        $msg = "Missing required client configuration options: \n\n";
        $msg .= implode("\n\n", $missing);
        throw new IAE($msg);
    }
private function throwRequired(array $args)
    {
        $missing = [];
        foreach ($this->argDefinitions as $k => $a) {
            if (empty($a['required'])
                || isset($a['default'])
                || isset($args[$k])
            ) {
                continue;
            }
            $missing[] = $this->getArgMessage($k, $args, true);
        }
        $msg = "Missing required client configuration options: \n\n";
        $msg .= implode("\n\n", $missing);
        throw new IAE($msg);
    }
private function throwRequired ( array $ args ) { $ missing = [ ] ; foreach ( $ this -> argDefinitions as $ k => $ a ) { if ( empty ( $ a [ 'required' ] ) || isset ( $ a [ 'default' ] ) || isset ( $ args [ $ k ] ) ) { continue ; } $ missing [ ] = $ this -> getArgMessage ( $ k , $ args , true ) ; } $ msg = "Missing required client configuration options: \n\n" ; $ msg .= implode ( "\n\n" , $ missing ) ; throw new IAE ( $ msg ) ; }
Throws an exception for missing required arguments.

@param array $args Passed in arguments.
@throws \InvalidArgumentException
Throws an exception for missing required arguments .