for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Date: 16.11.16
*
* @author Portey Vasil <[email protected]>
*/
namespace Youshido\GraphQL\Parser;
class Location
{
/** @var integer */
private $line;
private $column;
public function __construct($line, $column)
$this->line = $line;
$this->column = $column;
}
* @return int
public function getLine()
return $this->line;
public function getColumn()
return $this->column;
public function toArray()
return [
'line' => $this->getLine(),
'column' => $this->getColumn()
];