public function canTransition($subject, $transitionName, $name = null)
    {
        return $this->workflowRegistry->get($subject, $name)->can($subject, $transitionName);
    }
public function canTransition($subject, $transitionName, $name = null)
    {
        return $this->workflowRegistry->get($subject, $name)->can($subject, $transitionName);
    }
public function canTransition ( $ subject , $ transitionName , $ name = null ) { return $ this -> workflowRegistry -> get ( $ subject , $ name ) -> can ( $ subject , $ transitionName ) ; }
Returns true if the transition is enabled.

@param object $subject        A subject
@param string $transitionName A transition
@param string $name           A workflow name

@return bool true if the transition is enabled
Returns true if the transition is enabled .