2016-08-22 20:40:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace LanguageServer\Protocol;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Position in a text document expressed as zero-based line and character offset.
|
|
|
|
*/
|
|
|
|
class Position
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Line position in a document (zero-based).
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $line;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Character offset on a line in a document (zero-based).
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $character;
|
2016-08-25 13:27:14 +00:00
|
|
|
|
|
|
|
public function __construct(int $line = null, int $character = null)
|
|
|
|
{
|
|
|
|
$this->line = $line;
|
|
|
|
$this->character = $character;
|
|
|
|
}
|
2016-08-22 20:40:16 +00:00
|
|
|
}
|