public function pass(DataBagInterface $dataBag): DataBagInterface
    {
        if (!($this->callback)($dataBag)) {
            throw new FlowTerminationException(
                sprintf(
                    'Flow was terminated by Filter (%s) for data %s.',
                    $this->getIdentifier(),
                    json_encode($dataBag)
                )
            );
        }

        return $dataBag;
    }