getName() 공개 메소드

public getName ( ) : mixed
리턴 mixed
예제 #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');
 }
예제 #2
0
파일: Query.php 프로젝트: youshido/graphql
 public function addArgument(Argument $argument)
 {
     $this->arguments[$argument->getName()] = $argument;
 }