1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/src/Psalm/Internal/Analyzer/ClassLikeNameOptions.php

40 lines
887 B
PHP
Raw Normal View History

<?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;
}
}