| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class VerifyDependencyResponse implements \Countable |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $ruleName; |
||
| 12 | |||
| 13 | private $violations = []; |
||
| 14 | |||
| 15 | public function __construct(string $ruleName) |
||
| 16 | { |
||
| 17 | $this->ruleName = $ruleName; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function addRuleViolation(string $dependerComponent, string $depender, string $dependeeComponent, string $dependee) |
||
| 27 | ]; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getRuleName() |
||
| 31 | { |
||
| 32 | return $this->ruleName; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getViolations(): array |
||
| 36 | { |
||
| 37 | return $this->violations; |
||
| 38 | /** |
||
| 39 | * Hoge component rule violations |
||
| 40 | * | hoge.php | Hoge | -> | fuga.php | Fuga | |
||
| 41 | * | hoge.php | Hoge | -> | fuga.php | Fuga | |
||
| 42 | * |
||
| 43 | * | No | file path | |
||
| 44 | * |---|---| |
||
| 45 | * | 1 | hoge.php | |
||
| 46 | * | 2 | fuga.php | |
||
| 47 | */ |
||
| 48 | } |
||
| 49 | |||
| 50 | public function count() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |