1 | <?php |
||
16 | class JoinPoint implements SplSubject |
||
17 | { |
||
18 | /** @var SplObjectStorage */ |
||
19 | protected $storage; |
||
20 | |||
21 | /** @var HttpGetRequest */ |
||
22 | protected $request; |
||
23 | |||
24 | /** @var HttpGetResponse */ |
||
25 | protected $response; |
||
26 | |||
27 | /** @var string */ |
||
28 | protected $name; |
||
29 | |||
30 | /** |
||
31 | * @param string $pointName |
||
32 | */ |
||
33 | 9 | public function __construct($pointName, HttpGetRequest $request) |
|
39 | |||
40 | 8 | public function attach(SplObserver $observer) |
|
44 | |||
45 | 1 | public function detach(SplObserver $observer) |
|
49 | 1 | ||
50 | 1 | public function detachAll() |
|
54 | |||
55 | 1 | public function notify() |
|
61 | 9 | ||
62 | final public function refRequest() |
||
66 | 6 | ||
67 | 6 | public function setRequest(HttpGetRequest $req) |
|
71 | |||
72 | 6 | final public function refResponse() |
|
76 | |||
77 | 1 | public function setResponse(HttpGetResponse $res) |
|
81 | |||
82 | 6 | public function __toString() |
|
86 | } |
||
87 |