Page MenuHomeWickedGov Phorge

HasAttributesTrait.php
No OneTemporary

Size
765 B
Referenced Files
None
Subscribers
None

HasAttributesTrait.php

<?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

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)

Event Timeline