| Total Complexity | 5 | 
| Total Lines | 26 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 7 | class ArrayHasInstanceOf extends Constraint  | 
            ||
| 8 | { | 
            ||
| 9 | private $class;  | 
            ||
| 10 | |||
| 11 | 4 | public function __construct(string $class)  | 
            |
| 12 |     { | 
            ||
| 13 | 4 | $this->class = $class;  | 
            |
| 14 | 4 | }  | 
            |
| 15 | |||
| 16 | /**  | 
            ||
| 17 |      * {@inheritdoc} | 
            ||
| 18 | */  | 
            ||
| 19 | 2 | public function toString(): string  | 
            |
| 20 |     { | 
            ||
| 21 | 2 |         return \sprintf('contains instance of "%s"', $this->class); | 
            |
| 22 | }  | 
            ||
| 23 | |||
| 24 | 4 | public function matches($other): bool  | 
            |
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 |