Get transitions with specific name.

@param string $transitionName Transition name

@return array|null Transitions with specific name
769494
public function getTransitionsByName($transitionName)
    {
        return array_filter(
            $this->transitions,
            function (Transition $transition) use ($transitionName) {
                return $transition->getName() === $transitionName;
            }
        );
    }
205027
protected function _getTransition($key)
    {
        $sKey = (string) $key;

        return array_key_exists($sKey, $this->transitions)
            ? $this->transitions[$sKey]
            : null;
    }
1360994
public function lastByName($name) {
        for ($i = count($this->tokens) - 1; $i >= 0; $i--) {
            if ($this->tokens[$i]->getName() === $name) {
                return $this->tokens[$i];
            }
        }

        return null;
    }
315294
def _match_transition(self, transition):
        """"""
        return (self.names == '*'
                or transition in self.names
                or transition.name in self.names)
1033220
protected function _transitions($data)
    {
        $transitions = "";

        foreach( $this->browsers as $val )
        {
            $transitions .= "$val$data";
        }

        return EOL.$transitions;
    }
91123
public function findByClass($className)
    {
        $result = [];
        foreach ($this->_traits as $trait) {
            if ($trait->matchClassName($className)) {
                $result[] = $trait;
            }
        }
        $result = SortUtils::sortReflections($result);

        return $result;
    }
1032842
public function getClassPropertyNames($className)
    {
        if (!isset($this->reflectedClassNames[$className])) {
            $this->reflectClass($className);
        }
        return isset($this->classPropertyNames[$className]) ? $this->classPropertyNames[$className] : [];
    }
1046638
public function neon(string $filename): array {
		$neon = file_get_contents($filename);
		if($neon !== false) {
			$parameters = Neon::decode($neon);
			return $parameters["doctrine"];
		} else {
			return [];
		}
	}
736316
public function getTags($tagName = null) {
		return $this->tags->filter(function ($tag) use ($tagName) {
			return $tagName === null || $tag->getTagName() == $tagName;
		});
	}
808048
protected function calculcateScore(TransitionInterface $transition)
    {
        $score = 0;
        if ($transition->getEventName()) {
            $score += 2;
        }
        if ($transition->getConditionName()) {
            ++$score;
        }

        return $score;
    }
1371514
public function getAvailableTransitions(Reference $ref, $state = null)
	{
		if ($state === null) {
			$state = $ref->state;
		}

		$available_transitions = array();

		foreach ($this->actions as $a => $action) {
			if (!empty($action['transitions'][$state]) && $this->isTransitionAllowed($ref, $a, $state)) {
				$available_transitions[] = $a;
			}
		}

		return $available_transitions;
	}
815207
protected function findTransition(StateInterface $sourceState, StateInterface $targetState, $eventName = null, ConditionInterface $condition = null)
    {
        $conditionName = $condition ? $condition->getName() : null;
        /* @var $transition TransitionInterface */
        foreach ($sourceState->getTransitions() as $transition) {
            $hasSameTargetState = ($transition->getTargetState() === $targetState);
            $hasSameCondition = ($transition->getConditionName() == $conditionName);
            $hasSameEvent = ($transition->getEventName() == $eventName);
            if ($hasSameTargetState && $hasSameCondition && $hasSameEvent) {
                return $transition;
            }
        }
    }
1146365
protected function getTrans($filename)
    {
        if (is_file($filename)) {
            $trans = Yaml::parse(file_get_contents($filename));
        } else {
            $trans = array();
        }

        $keys = array('breadcrumb', 'list', 'filter', 'show', 'form');
        foreach ($keys as $key) {
            if (!array_key_exists($key, $trans)) {
                $trans[$key] = array();
            }
        }

        return $trans;
    }
145856
public function canTransition($subject, $transitionName, $name = null)
    {
        return $this->workflowRegistry->get($subject, $name)->can($subject, $transitionName);
    }
1063171
public function getTransitionColor($transition)
    {
        return empty($this->colors['transition'][$transition])
            ? $this->options['transition']['default_color']
            : $this->colors['transition'][$transition]
        ;
    }
555104
def get_transition_m(self, transition_id):
        
        for transition_m in self.transitions:
            if transition_m.transition.transition_id == transition_id:
                return transition_m
        return None
812267
public function reachState(
        $startStateName,
        $finalStateName
    ) {
        $transition = $this
            ->machine
            ->reachState(
                $startStateName,
                $finalStateName
            );

        $this->logTransition($transition);

        return $transition;
    }