| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class Type |
||
| 6 | { |
||
| 7 | public const PUSH_TO_REPOSITORY = 1; |
||
| 8 | public const PR_ACTION = 2; |
||
| 9 | public const ISSUE_ACTION = 3; |
||
| 10 | public const COMMENTED_ON_ISSUE = 4; |
||
| 11 | public const REPOSITORY_FORKED = 5; |
||
| 12 | public const REPOSITORY_CREATED = 6; |
||
| 13 | public const STARTED_WATCHING = 7; |
||
| 14 | |||
| 15 | private int $type; |
||
| 16 | |||
| 17 | 23 | public function __construct(int $type) |
|
| 18 | { |
||
| 19 | 23 | $this->type = $type; |
|
| 20 | 23 | } |
|
| 21 | |||
| 22 | 21 | public function getValue(): int |
|
| 25 | } |
||
| 26 | } |
||
| 27 |