Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7397974
HasAttributesTrait.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
765 B
Referenced Files
None
Subscribers
None
HasAttributesTrait.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\Language\Element
;
/**
* This contains functionality common to declarations that have attributes
*/
trait
HasAttributesTrait
{
/**
* @var list<Attribute> the attributes associated with this function-like
*/
protected
$attribute_list
=
[];
/**
* Set the attributes associated with this function-like
* @param list<Attribute> $attribute_list
*/
public
function
setAttributeList
(
array
$attribute_list
):
void
{
$this
->
attribute_list
=
$attribute_list
;
}
/**
* Get the attributes associated with this function-like
* @return list<Attribute>
*/
public
function
getAttributeList
():
array
{
return
$this
->
attribute_list
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 14:58 (1 h, 44 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/77/c91d3698f334e9e6207878e6fec6
Default Alt Text
HasAttributesTrait.php (765 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment