Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7457152
Hover.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
996 B
Referenced Files
None
Subscribers
None
Hover.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\LanguageServer\Protocol
;
/**
* The result of a hover request.
* @phan-file-suppress PhanWriteOnlyPublicProperty
* @phan-immutable
*/
class
Hover
{
/**
* @var MarkupContent The hover's content
*/
public
$contents
;
/**
* @var Range|null an optional range inside a text document
* that is used to visualize a hover, e.g. by changing the background color.
*/
public
$range
;
public
function
__construct
(
MarkupContent
$contents
,
Range
$range
=
null
)
{
$this
->
contents
=
$contents
;
$this
->
range
=
$range
;
}
/**
* Creates a Hover object from a serialized array
*
* @param array{contents:array,range?:array} $data
*/
public
static
function
fromArray
(
array
$data
):
self
{
return
new
self
(
MarkupContent
::
fromArray
(
$data
[
'contents'
]),
isset
(
$data
[
'range'
])
?
Range
::
fromArray
(
$data
[
'range'
])
:
null
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 00:50 (6 d, 34 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
84/de/51238388125583157ec1d52336f7
Default Alt Text
Hover.php (996 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment