Create New Item
×
Item Type
File
Folder
Item Name
File Manager
/
back
/
vendor
/
phpdocumentor
/
reflection
/
src
/
phpDocumentor
/
Reflection
/
Php
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare(strict_types=1); namespace phpDocumentor\Reflection\Php; trait HasAttributes { /** @var Attribute[] */ private array $attributes = []; public function addAttribute(Attribute $attribute): void { $this->attributes[] = $attribute; } /** @return Attribute[] */ public function getAttributes(): array { return $this->attributes; } }