1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 18:36:58 +01:00
psalm/src/Psalm/Storage/AttributeStorage.php
Matt Brown f8eee22f77 Add basic support for PHP attributes
Ref #4367 - supports creation and argument checks
2020-10-24 00:10:22 -04:00

44 lines
729 B
PHP

<?php
namespace Psalm\Storage;
use Psalm\CodeLocation;
class AttributeStorage
{
/**
* @var string
*/
public $fq_class_name;
/**
* @var list<AttributeArg>
*/
public $args;
/**
* @var CodeLocation
*/
public $location;
/**
* @var CodeLocation
*/
public $name_location;
/**
* @param list<AttributeArg> $args
*/
public function __construct(
string $fq_class_name,
array $args,
CodeLocation $location,
CodeLocation $name_location
) {
$this->fq_class_name = $fq_class_name;
$this->args = $args;
$this->location = $location;
$this->name_location = $name_location;
}
}