public function getStatus($name)
    {
        foreach ($this->states as $status) {
            if ($status->getName() == $name) {
                return $status;
            }
        }
        throw new WorkflowException('No status found with the name ' . $name, 70, NULL);
    }
public function getStatus($name)
    {
        foreach ($this->states as $status) {
            if ($status->getName() == $name) {
                return $status;
            }
        }
        throw new WorkflowException('No status found with the name ' . $name, 70, NULL);
    }
public function getStatus ( $ name ) { foreach ( $ this -> states as $ status ) { if ( $ status -> getName ( ) == $ name ) { return $ status ; } } throw new WorkflowException ( 'No status found with the name ' . $ name , 70 , NULL ) ; }
Get the status of the workflow by its name.

@param $name

@return \Mothership\StateMachine\StatusInterface WorkflowException

@throws WorkflowException
Get the status of the workflow by its name .