| Total Complexity | 5 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class CheckResult extends Event |
||
|
|
|||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $format; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $content; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ValidationResult |
||
| 24 | */ |
||
| 25 | protected $validationResult; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $format |
||
| 29 | * @param string $content |
||
| 30 | * @param ValidationResult $validationResult |
||
| 31 | */ |
||
| 32 | 7 | public function __construct(string $format, string $content, ValidationResult $validationResult) |
|
| 33 | { |
||
| 34 | 7 | $this->format = $format; |
|
| 35 | 7 | $this->content = $content; |
|
| 36 | 7 | $this->validationResult = $validationResult; |
|
| 37 | 7 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 3 | public function getFormat(): string |
|
| 43 | { |
||
| 44 | 3 | return $this->format; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 1 | public function getContent(): string |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return ValidationResult |
||
| 57 | */ |
||
| 58 | 7 | public function getValidationResult(): ValidationResult |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | 6 | public function isValid(): bool |
|
| 69 | } |
||
| 70 | } |
||
| 71 |