| 1 | <?php |
||
| 10 | class NotificationIsFreshSpecification extends Specification |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | private $expectsToBeFresh; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param bool $expectsToBeFresh |
||
| 19 | */ |
||
| 20 | 4 | public function __construct(bool $expectsToBeFresh = true) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param Notification $notification |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | 4 | public function isSatisfiedBy($notification): bool |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 2 | public function whereExpression(string $alias): string |
|
| 50 | } |
||
| 51 |