| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | 2 | public function whereExpression(string $alias): string  | 
            |
| 38 |     { | 
            ||
| 39 | $specifications = [  | 
            ||
| 40 | 2 | new NotificationIsLockedSpecification(!$this->expectsToBeFresh),  | 
            |
| 41 | 2 | new NotificationIsFailedSpecification(!$this->expectsToBeFresh),  | 
            |
| 42 | 2 | new NotificationIsSentSpecification(!$this->expectsToBeFresh),  | 
            |
| 43 | ];  | 
            ||
| 44 | 2 | $composite = $this->expectsToBeFresh  | 
            |
| 45 | 1 | ? new AnyOfSpecification(...$specifications)  | 
            |
| 46 | 2 | : new OneOfSpecification(...$specifications);  | 
            |
| 47 | |||
| 48 | 2 | return $composite->whereExpression($alias);  | 
            |
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 |