2016-08-22 20:40:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace LanguageServer\Protocol;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a location inside a resource, such as a line inside a text file.
|
|
|
|
*/
|
|
|
|
class Location
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $uri;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var Range
|
|
|
|
*/
|
|
|
|
public $range;
|
2016-08-25 13:27:14 +00:00
|
|
|
|
|
|
|
public function __construct(string $uri = null, Range $range = null)
|
|
|
|
{
|
|
|
|
$this->uri = $uri;
|
|
|
|
$this->range = $range;
|
|
|
|
}
|
2016-08-22 20:40:16 +00:00
|
|
|
}
|