graphql-php/src/Language/SourceLocation.php

23 lines
359 B
PHP
Raw Normal View History

2015-07-15 20:05:46 +03:00
<?php
namespace GraphQL\Language;
class SourceLocation
{
public $line;
public $column;
public function __construct($line, $col)
{
$this->line = $line;
$this->column = $col;
}
2015-08-16 13:39:30 +03:00
public function toArray()
{
return [
'line' => $this->line,
'column' => $this->column
];
}
2015-07-15 20:05:46 +03:00
}