2021-04-30 21:01:33 +02:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Internal\Analyzer;
|
|
|
|
|
|
|
|
class ClassLikeNameOptions
|
|
|
|
{
|
|
|
|
/** @var bool */
|
|
|
|
public $inferred;
|
|
|
|
|
|
|
|
/** @var bool */
|
|
|
|
public $allow_trait;
|
|
|
|
|
|
|
|
/** @var bool */
|
|
|
|
public $allow_interface;
|
|
|
|
|
2021-05-03 23:54:09 +02:00
|
|
|
/** @var bool */
|
|
|
|
public $allow_enum;
|
|
|
|
|
2021-04-30 21:01:33 +02:00
|
|
|
/** @var bool */
|
|
|
|
public $from_docblock;
|
|
|
|
|
|
|
|
/** @var bool */
|
|
|
|
public $from_attribute;
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
bool $inferred = false,
|
|
|
|
bool $allow_trait = false,
|
|
|
|
bool $allow_interface = true,
|
2021-05-03 23:54:09 +02:00
|
|
|
bool $allow_enum = true,
|
2021-04-30 21:01:33 +02:00
|
|
|
bool $from_docblock = false,
|
|
|
|
bool $from_attribute = false
|
|
|
|
) {
|
|
|
|
$this->inferred = $inferred;
|
|
|
|
$this->allow_trait = $allow_trait;
|
|
|
|
$this->allow_interface = $allow_interface;
|
2021-05-03 23:54:09 +02:00
|
|
|
$this->allow_enum = $allow_enum;
|
2021-04-30 21:01:33 +02:00
|
|
|
$this->from_docblock = $from_docblock;
|
|
|
|
$this->from_attribute = $from_attribute;
|
|
|
|
}
|
|
|
|
}
|