2017-01-11 01:08:52 +00:00
|
|
|
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
namespace LanguageServer\Protocol;
|
|
|
|
|
2017-06-22 18:06:10 +00:00
|
|
|
/**
|
|
|
|
* Uniquely identifies a symbol
|
|
|
|
*/
|
|
|
|
class SymbolDescriptor
|
2017-01-11 01:08:52 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The fully qualified structural element name, a globally unique identifier for the symbol.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $fqsen;
|
|
|
|
|
|
|
|
/**
|
2017-06-22 18:06:10 +00:00
|
|
|
* Identifies the Composer package the symbol is defined in (if any)
|
2017-01-11 01:08:52 +00:00
|
|
|
*
|
2017-06-22 18:06:10 +00:00
|
|
|
* @var PackageDescriptor|null
|
2017-01-11 01:08:52 +00:00
|
|
|
*/
|
|
|
|
public $package;
|
|
|
|
|
|
|
|
/**
|
2017-06-22 18:06:10 +00:00
|
|
|
* @param string $fqsen The fully qualified structural element name, a globally unique identifier for the symbol.
|
|
|
|
* @param PackageDescriptor $package Identifies the Composer package the symbol is defined in
|
2017-01-11 01:08:52 +00:00
|
|
|
*/
|
2017-06-22 18:06:10 +00:00
|
|
|
public function __construct(string $fqsen = null, PackageDescriptor $package = null)
|
2017-01-11 01:08:52 +00:00
|
|
|
{
|
|
|
|
$this->fqsen = $fqsen;
|
|
|
|
$this->package = $package;
|
|
|
|
}
|
|
|
|
}
|