public function create(StatusInterface $statusFrom, StatusInterface $statusTo)
    {
        $transition = new $this->transitionClass();
        $transition->setStatusFrom($statusFrom);
        $transition->setStatusTo($statusTo);

        return $transition;
    }
public function create(StatusInterface $statusFrom, StatusInterface $statusTo)
    {
        $transition = new $this->transitionClass();
        $transition->setStatusFrom($statusFrom);
        $transition->setStatusTo($statusTo);

        return $transition;
    }
public function create ( StatusInterface $ statusFrom , StatusInterface $ statusTo ) { $ transition = new $ this -> transitionClass ( ) ; $ transition -> setStatusFrom ( $ statusFrom ) ; $ transition -> setStatusTo ( $ statusTo ) ; return $ transition ; }
Create a transition

@param StatusInterface $statusFrom
@param StatusInterface $statusTo

@return WorkflowTransitionInterface
Create a transition