| Total Complexity | 7 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class Method |
||
| 9 | { |
||
| 10 | private $class; |
||
| 11 | private $method; |
||
| 12 | |||
| 13 | 286 | public function __construct(int $class, int $method) |
|
| 14 | { |
||
| 15 | 286 | if ($class < 0 || $method < 0) { |
|
| 16 | 4 | throw new DomainException; |
|
| 17 | } |
||
| 18 | |||
| 19 | 282 | $this->class = $class; |
|
| 20 | 282 | $this->method = $method; |
|
| 21 | 282 | } |
|
| 22 | |||
| 23 | public function class(): int |
||
| 26 | } |
||
| 27 | |||
| 28 | 186 | public function method(): int |
|
| 29 | { |
||
| 30 | 186 | return $this->method; |
|
| 31 | } |
||
| 32 | |||
| 33 | 386 | public function equals(self $method): bool |
|
| 36 | } |
||
| 37 | } |
||
| 38 |