| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class Symbol |
||
| 7 | { |
||
| 8 | public const INVALID = 0; |
||
| 9 | public const EXTERNAL = 1; |
||
| 10 | public const SLACK = 2; |
||
| 11 | public const ERROR = 3; |
||
| 12 | public const DUMMY = 4; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $type; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Symbol constructor. |
||
| 21 | * |
||
| 22 | * @param int $type |
||
| 23 | */ |
||
| 24 | 21 | public function __construct(int $type = self::INVALID) |
|
| 25 | { |
||
| 26 | 21 | $this->type = $type; |
|
| 27 | 21 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | 21 | public function getType(): int |
|
| 33 | { |
||
| 34 | 21 | return $this->type; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param int $type |
||
| 39 | */ |
||
| 40 | public function setType(int $type): void |
||
| 43 | } |
||
| 44 | } |