Youshido\GraphQL\Parser\Ast\ArgumentValue\Variable::setValue PHP Method

setValue() public method

public setValue ( mixed $value )
$value mixed
    public function setValue($value)
    {
        $this->value = $value;
    }

Usage Example

Example #1
0
 /**
  * Test if variable value equals expected value
  *
  * @dataProvider variableProvider
  */
 public function testGetValue($actual, $expected)
 {
     $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
     $var->setValue($actual);
     $this->assertEquals($var->getValue(), $expected);
 }
All Usage Examples Of Youshido\GraphQL\Parser\Ast\ArgumentValue\Variable::setValue