ModelBundle/Document/WorkflowProfile.php
public function hasTransition(StatusInterface $fromStatus, StatusInterface $toStatus)
    {
        foreach ($this->transitions as $transition) {
            if ($transition->getStatusFrom()->getId() === $fromStatus->getId()
                && $transition->getStatusTo()->getId() === $toStatus->getId()
            ) {
                return true;
            }
        }

        return false;
    }
public function hasTransition(StatusInterface $fromStatus, StatusInterface $toStatus)
    {
        foreach ($this->transitions as $transition) {
            if ($transition->getStatusFrom()->getId() === $fromStatus->getId()
                && $transition->getStatusTo()->getId() === $toStatus->getId()
            ) {
                return true;
            }
        }

        return false;
    }
public function hasTransition ( StatusInterface $ fromStatus , StatusInterface $ toStatus ) { foreach ( $ this -> transitions as $ transition ) { if ( $ transition -> getStatusFrom ( ) -> getId ( ) === $ fromStatus -> getId ( ) && $ transition -> getStatusTo ( ) -> getId ( ) === $ toStatus -> getId ( ) ) { return true ; } } return false ; }
@param StatusInterface $fromStatus
@param StatusInterface $toStatus

@return boolean
@param StatusInterface $fromStatus @param StatusInterface $toStatus