| Total Complexity | 7 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | class HasContentType extends Constraint |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $contentType; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * HasContentType constructor. |
||
| 18 | * |
||
| 19 | * @param string $contentType |
||
| 20 | */ |
||
| 21 | 10 | public function __construct($contentType) |
|
| 24 | 10 | } |
|
| 25 | |||
| 26 | 7 | protected function matches($other): bool |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function toString(): string |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 1 | protected function failureDescription($other): string |
|
| 49 |