34 lines
615 B
PHP
34 lines
615 B
PHP
<?php
|
|
|
|
namespace LanguageServer\Protocol;
|
|
|
|
/**
|
|
* The result of a hover request.
|
|
*/
|
|
class Hover
|
|
{
|
|
/**
|
|
* The hover's content
|
|
*
|
|
* @var string|MarkedString|string[]|MarkedString[]
|
|
*/
|
|
public $contents;
|
|
|
|
/**
|
|
* An optional range
|
|
*
|
|
* @var Range|null
|
|
*/
|
|
public $range;
|
|
|
|
/**
|
|
* @param string|MarkedString|string[]|MarkedString[] $contents The hover's content
|
|
* @param Range $range An optional range
|
|
*/
|
|
public function __construct($contents = null, $range = null)
|
|
{
|
|
$this->contents = $contents;
|
|
$this->range = $range;
|
|
}
|
|
}
|