mirror of
https://github.com/danog/psalm.git
synced 2024-12-14 10:17:33 +01:00
832a190dd4
* Add initial enum preparation * Support cases method * Ignore bad use error cc @weirdan * Fix type
40 lines
887 B
PHP
40 lines
887 B
PHP
<?php
|
|
namespace Psalm\Internal\Analyzer;
|
|
|
|
class ClassLikeNameOptions
|
|
{
|
|
/** @var bool */
|
|
public $inferred;
|
|
|
|
/** @var bool */
|
|
public $allow_trait;
|
|
|
|
/** @var bool */
|
|
public $allow_interface;
|
|
|
|
/** @var bool */
|
|
public $allow_enum;
|
|
|
|
/** @var bool */
|
|
public $from_docblock;
|
|
|
|
/** @var bool */
|
|
public $from_attribute;
|
|
|
|
public function __construct(
|
|
bool $inferred = false,
|
|
bool $allow_trait = false,
|
|
bool $allow_interface = true,
|
|
bool $allow_enum = true,
|
|
bool $from_docblock = false,
|
|
bool $from_attribute = false
|
|
) {
|
|
$this->inferred = $inferred;
|
|
$this->allow_trait = $allow_trait;
|
|
$this->allow_interface = $allow_interface;
|
|
$this->allow_enum = $allow_enum;
|
|
$this->from_docblock = $from_docblock;
|
|
$this->from_attribute = $from_attribute;
|
|
}
|
|
}
|