locationToArray() 공개 정적인 메소드

public static locationToArray ( Location $loc ) : array
$loc GraphQL\Language\AST\Location
리턴 array
예제 #1
0
 /**
  * @it contains location information that only stringifys start/end
  */
 public function testConvertToArray()
 {
     $source = new Source('{ id }');
     $result = Parser::parse($source);
     $this->assertEquals(['start' => 0, 'end' => '6'], TestUtils::locationToArray($result->loc));
 }