public function getOutgoingContext($name)
    {
        foreach ($this->outgoingContexts as $outgoingContext) {
            if ($outgoingContext->getName() == $name) {
                return $outgoingContext;
            }
        }
    }
public function getOutgoingContext($name)
    {
        foreach ($this->outgoingContexts as $outgoingContext) {
            if ($outgoingContext->getName() == $name) {
                return $outgoingContext;
            }
        }
    }
public function getOutgoingContext ( $ name ) { foreach ( $ this -> outgoingContexts as $ outgoingContext ) { if ( $ outgoingContext -> getName ( ) == $ name ) { return $ outgoingContext ; } } }
Get a Dialogflow outgoing context.
Reference: https://dialogflow.com/docs/contexts.

@param string $name context name

@return null|Context
Get a Dialogflow outgoing context . Reference : https : // dialogflow . com / docs / contexts .