Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Swoole
Component
Observer
PHP Class Swoole\Component\Observer
Inheritance:
implements
SplSubject
Mostrar archivo
Open project: matyhtf/swoole_framework
Protected Properties
Property
Type
Description
$_observers
SplObjectStorage
Public Methods
Method
Description
attach
(
SplObserver
$observer
)
添加观察者
detach
(
SplObserver
$observer
)
移除观察者
notify
( )
通知所有观察者
Method Details
attach()
public
method
添加观察者
public
attach
(
SplObserver
$observer
)
$observer
SplObserver
detach()
public
method
移除观察者
public
detach
(
SplObserver
$observer
)
$observer
SplObserver
notify()
public
method
通知所有观察者
public
notify
( )
Property Details
$_observers
protected_oe property
protected
SplObjectStorage
$_observers
return
SplObjectStorage