| Current Path : /var/www/clients/client3/web2/web/vendor/webonyx/graphql-php/src/Language/ |
| Current File : /var/www/clients/client3/web2/web/vendor/webonyx/graphql-php/src/Language/SourceLocation.php |
<?php
declare(strict_types=1);
namespace GraphQL\Language;
use JsonSerializable;
class SourceLocation implements JsonSerializable
{
/** @var int */
public $line;
/** @var int */
public $column;
/**
* @param int $line
* @param int $col
*/
public function __construct($line, $col)
{
$this->line = $line;
$this->column = $col;
}
/**
* @return int[]
*/
public function toArray()
{
return [
'line' => $this->line,
'column' => $this->column,
];
}
/**
* @return int[]
*/
public function toSerializableArray()
{
return $this->toArray();
}
/**
* @return int[]
*/
public function jsonSerialize()
{
return $this->toSerializableArray();
}
}