mirror of
https://github.com/danog/psalm.git
synced 2024-12-14 18:36:58 +01:00
f8eee22f77
Ref #4367 - supports creation and argument checks
44 lines
729 B
PHP
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;
|
|
}
|
|
}
|