| Total Complexity | 10 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class ValidatorDefinition |
||
| 14 | { |
||
| 15 | private string $path; |
||
| 16 | |||
| 17 | private Severity $severity; |
||
| 18 | |||
| 19 | private array $settings; |
||
| 20 | |||
| 21 | /** @var mixed */ |
||
| 22 | private $argument; |
||
| 23 | |||
| 24 | private array $imports = []; |
||
| 25 | |||
| 26 | public function __construct(string $path, Severity $severity, array $settings = []) |
||
| 27 | { |
||
| 28 | $this->path = $path; |
||
| 29 | $this->severity = $severity; |
||
| 30 | $this->settings = $settings; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getPath(): string |
||
| 34 | { |
||
| 35 | return $this->path; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getSeverity(): Severity |
||
| 39 | { |
||
| 40 | return $this->severity; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getSettings(): array |
||
| 44 | { |
||
| 45 | return $this->settings; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** @return mixed */ |
||
| 49 | public function getArgument() |
||
| 50 | { |
||
| 51 | return $this->argument; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** @param mixed $argument */ |
||
| 55 | public function withArgument($argument): self |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getImports(): array |
||
| 65 | } |
||
| 66 | |||
| 67 | /** @param mixed $import */ |
||
| 68 | public function withImport(string $path, $import): self |
||
| 73 | } |
||
| 74 | } |
||
| 75 |