completed example

foreach ($approvedTransitions as $transition) {
            $this->leave($subject$transition$marking$context);

            $context = $this->transition($subject$transition$marking$context);

            $this->enter($subject$transition$marking$context);

            $this->markingStore->setMarking($subject$marking$context);

            $this->entered($subject$transition$marking$context);

            $this->completed($subject$transition$marking$context);

            $this->announce($subject$transition$marking$context);
        }

        $marking->setContext($context);

        return $marking;
    }

    public function getEnabledTransitions(object $subject): array
    {
        
Home | Imprint | This part of the site doesn't use cookies.