src/Executor/Values.php
public static function getVariableValues(Schema $schema, array $asts, array $inputs)
    {
        $values = [];
        foreach ($asts as $ast) {
            $variable = $ast->get('variable')->get('name')->get('value');
            $values[$variable] = self::getvariableValue($schema, $ast, isset($inputs[$variable]) ? $inputs[$variable] : NULL);
        }
        return $values;
    }
public static function getVariableValues(Schema $schema, array $asts, array $inputs)
    {
        $values = [];
        foreach ($asts as $ast) {
            $variable = $ast->get('variable')->get('name')->get('value');
            $values[$variable] = self::getvariableValue($schema, $ast, isset($inputs[$variable]) ? $inputs[$variable] : NULL);
        }
        return $values;
    }
public static function getVariableValues ( Schema $ schema , array $ asts , array $ inputs ) { $ values = [ ] ; foreach ( $ asts as $ ast ) { $ variable = $ ast -> get ( 'variable' ) -> get ( 'name' ) -> get ( 'value' ) ; $ values [ $ variable ] = self :: getvariableValue ( $ schema , $ ast , isset ( $ inputs [ $ variable ] ) ? $ inputs [ $ variable ] : NULL ) ; } return $ values ; }
Prepares an object map of variables of the correct type based on the
provided variable definitions and arbitrary input. If the input cannot be
coerced to match the variable definitions, a Error will be thrown.

@param Schema $schema
@param array $asts
@param array $inputs

@return array

@throws \Exception
Prepares an object map of variables of the correct type based on the provided variable definitions and arbitrary input . If the input cannot be coerced to match the variable definitions a Error will be thrown .