![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/webonyx/graphql-php/src/Language/ |
<?php declare(strict_types=1); namespace GraphQL\Language; class SourceLocation implements \JsonSerializable { public int $line; public int $column; public function __construct(int $line, int $col) { $this->line = $line; $this->column = $col; } /** @return array{line: int, column: int} */ public function toArray(): array { return [ 'line' => $this->line, 'column' => $this->column, ]; } /** @return array{line: int, column: int} */ public function toSerializableArray(): array { return $this->toArray(); } /** @return array{line: int, column: int} */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return $this->toArray(); } }