PHP Class Thruway\Role\Broker

Inheritance: extends AbstractRole
Afficher le fichier Open project: voryx/thruway Class Usage Examples

Protected Properties

Свойство Type Description
$matchers array
$stateHandlerRegistry Thruway\Subscription\StateHandlerRegistry
$subscriptionGroups array

Méthodes publiques

Méthode Description
__construct ( )
addMatcher ( Thruway\Subscription\MatcherInterface $matcher ) : boolean
getFeatures ( ) : stdClass Return supported features
getMatcherForMatchType ( $matchType ) : Thruway\Subscription\MatcherInterface | boolean
getStateHandlerRegistry ( ) : StateHandlerRegistry
getSubscribedRealmEvents ( ) : array
getSubscriptionById ( $id ) : boolean
getSubscriptionGroups ( ) : array
getSubscriptions ( ) : array
handleLeaveRealm ( LeaveRealmEvent $event )
handlePublishMessage ( MessageEvent $event )
handleSendWelcomeMessage ( MessageEvent $event )
handleSubscribeMessage ( MessageEvent $event )
handleUnsubscribeMessage ( MessageEvent $event )
leave ( Session $session )
managerGetSubscriptions ( ) : array todo: this may be used by testing
setStateHandlerRegistry ( StateHandlerRegistry $stateHandlerRegistry )

Méthodes protégées

Méthode Description
processPublish ( Session $session, Thruway\Message\PublishMessage $msg ) Process publish message
processSubscribe ( Session $session, Thruway\Message\SubscribeMessage $msg ) Process subscribe message
processUnsubscribe ( Session $session, Thruway\Message\UnsubscribeMessage $msg ) Process Unsubscribe message

Method Details

__construct() public méthode

public __construct ( )

addMatcher() public méthode

public addMatcher ( Thruway\Subscription\MatcherInterface $matcher ) : boolean
$matcher Thruway\Subscription\MatcherInterface
Résultat boolean

getFeatures() public méthode

Return supported features
public getFeatures ( ) : stdClass
Résultat stdClass

getMatcherForMatchType() public méthode

public getMatcherForMatchType ( $matchType ) : Thruway\Subscription\MatcherInterface | boolean
$matchType
Résultat Thruway\Subscription\MatcherInterface | boolean

getStateHandlerRegistry() public méthode

public getStateHandlerRegistry ( ) : StateHandlerRegistry
Résultat Thruway\Subscription\StateHandlerRegistry

getSubscribedRealmEvents() public méthode

public getSubscribedRealmEvents ( ) : array
Résultat array

getSubscriptionById() public méthode

public getSubscriptionById ( $id ) : boolean
$id
Résultat boolean

getSubscriptionGroups() public méthode

public getSubscriptionGroups ( ) : array
Résultat array

getSubscriptions() public méthode

public getSubscriptions ( ) : array
Résultat array

handleLeaveRealm() public méthode

public handleLeaveRealm ( LeaveRealmEvent $event )
$event Thruway\Event\LeaveRealmEvent

handlePublishMessage() public méthode

public handlePublishMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

handleSendWelcomeMessage() public méthode

public handleSendWelcomeMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

handleSubscribeMessage() public méthode

public handleSubscribeMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

handleUnsubscribeMessage() public méthode

public handleUnsubscribeMessage ( MessageEvent $event )
$event Thruway\Event\MessageEvent

leave() public méthode

public leave ( Session $session )
$session Thruway\Session

managerGetSubscriptions() public méthode

todo: this may be used by testing
public managerGetSubscriptions ( ) : array
Résultat array

processPublish() protected méthode

Process publish message
protected processPublish ( Session $session, Thruway\Message\PublishMessage $msg )
$session Thruway\Session
$msg Thruway\Message\PublishMessage

processSubscribe() protected méthode

Process subscribe message
protected processSubscribe ( Session $session, Thruway\Message\SubscribeMessage $msg )
$session Thruway\Session
$msg Thruway\Message\SubscribeMessage

processUnsubscribe() protected méthode

Process Unsubscribe message
protected processUnsubscribe ( Session $session, Thruway\Message\UnsubscribeMessage $msg )
$session Thruway\Session
$msg Thruway\Message\UnsubscribeMessage

setStateHandlerRegistry() public méthode

public setStateHandlerRegistry ( StateHandlerRegistry $stateHandlerRegistry )
$stateHandlerRegistry Thruway\Subscription\StateHandlerRegistry

Property Details

$matchers protected_oe property

protected array $matchers
Résultat array

$stateHandlerRegistry protected_oe property

protected StateHandlerRegistry,Thruway\Subscription $stateHandlerRegistry
Résultat Thruway\Subscription\StateHandlerRegistry

$subscriptionGroups protected_oe property

protected array $subscriptionGroups
Résultat array