mirror of
https://github.com/danog/psalm.git
synced 2025-01-10 15:09:04 +01:00
39 lines
641 B
PHP
39 lines
641 B
PHP
<?php
|
|
|
|
namespace Psalm\Storage;
|
|
|
|
use Psalm\CodeLocation;
|
|
use Psalm\Internal\Scanner\UnresolvedConstantComponent;
|
|
use Psalm\Type\Union;
|
|
|
|
class AttributeArg
|
|
{
|
|
/**
|
|
* @var ?string
|
|
*/
|
|
public $name;
|
|
|
|
/**
|
|
* @var Union|UnresolvedConstantComponent
|
|
*/
|
|
public $type;
|
|
|
|
/**
|
|
* @var CodeLocation
|
|
*/
|
|
public $location;
|
|
|
|
/**
|
|
* @param Union|UnresolvedConstantComponent $type
|
|
*/
|
|
public function __construct(
|
|
?string $name,
|
|
$type,
|
|
CodeLocation $location
|
|
) {
|
|
$this->name = $name;
|
|
$this->type = $type;
|
|
$this->location = $location;
|
|
}
|
|
}
|