| Total Complexity | 3 | 
| Total Lines | 23 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | class EloquentCollectionContains extends Constraint  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * @var Model  | 
            ||
| 13 | */  | 
            ||
| 14 | private $object;  | 
            ||
| 15 | |||
| 16 | 4 | public function __construct($object)  | 
            |
| 17 |     { | 
            ||
| 18 | 4 | $this->object = $object;  | 
            |
| 19 | 4 | }  | 
            |
| 20 | |||
| 21 | /**  | 
            ||
| 22 |      * {@inheritdoc} | 
            ||
| 23 | */  | 
            ||
| 24 | 2 | public function toString(): string  | 
            |
| 27 | }  | 
            ||
| 28 | |||
| 29 | 4 | public function matches($collection): bool  | 
            |
| 34 |