/** * {@inheritDoc} */ public function isSatisfiedBy(EntityInterface $entity) { if ($entity->getStartDate() <= $this->clock->getCurrentDateTime() && $entity->getEndDate() > $this->clock->getCurrentDateTime()) { return true; } return false; }