Youshido\GraphQL\Parser\Ast\Argument::getValue PHP Method

getValue() public method

public getValue ( ) : Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface
return Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface
    public function getValue()
    {
        return $this->value;
    }

Usage Example

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');
 }