getValue() public method

public getValue ( ) : Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface
return Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface
Example #1
0
 public function testArgument()
 {
     $argument = new Argument('test', new Literal('test', new Location(1, 1)), new Location(1, 1));
     $this->assertNotNull($argument->getValue());
     $this->assertEquals($argument->getName(), 'test');
     $argument->setName('test2');
     $argument->setValue('some value');
     $this->assertEquals($argument->getName(), 'test2');
     $this->assertEquals($argument->getValue(), 'some value');
 }