1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 15:09:04 +01:00
psalm/src/Psalm/Storage/AttributeArg.php
2022-02-21 01:08:21 +02:00

41 lines
810 B
PHP

<?php
namespace Psalm\Storage;
use Psalm\CodeLocation;
use Psalm\Internal\Scanner\UnresolvedConstantComponent;
use Psalm\Type\Union;
final class AttributeArg
{
/**
* @var ?string
* @psalm-suppress PossiblyUnusedProperty It's part of the public API for now
*/
public $name;
/**
* @var Union|UnresolvedConstantComponent
*/
public $type;
/**
* @var CodeLocation
* @psalm-suppress PossiblyUnusedProperty It's part of the public API for now
*/
public $location;
/**
* @param Union|UnresolvedConstantComponent $type
*/
public function __construct(
?string $name,
$type,
CodeLocation $location
) {
$this->name = $name;
$this->type = $type;
$this->location = $location;
}
}