src/Conversation/EndableConversationSpecification.php
public function isSatisfiedBy(EntityInterface $entity)
    {
        assert($entity instanceof Conversation);

        if ($entity->getCurrentPage()->isEndPage()) {
            if ($this->endOnNextStepOfEndPage) {
                if ($entity->getStepCountOnEndPage() === null) {
                    return false;
                } else {
                    return $entity->getStepCount() > $entity->getStepCountOnEndPage();
                }
            } else {
                return true;
            }
        } else {
            return false;
        }
    }
public function isSatisfiedBy(EntityInterface $entity)
    {
        assert($entity instanceof Conversation);

        if ($entity->getCurrentPage()->isEndPage()) {
            if ($this->endOnNextStepOfEndPage) {
                if ($entity->getStepCountOnEndPage() === null) {
                    return false;
                } else {
                    return $entity->getStepCount() > $entity->getStepCountOnEndPage();
                }
            } else {
                return true;
            }
        } else {
            return false;
        }
    }
{@inheritdoc}