| 1 | <?php |
||
| 22 | trait SendNotificationTrait |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * getSession |
||
| 26 | * |
||
| 27 | * sendNotification needs to access the session. |
||
| 28 | */ |
||
| 29 | abstract protected function getSession(); |
||
| 30 | |||
| 31 | /** |
||
| 32 | * sendNotification |
||
| 33 | * |
||
| 34 | * Send notification to the listener pooler. |
||
| 35 | * |
||
| 36 | * @access protected |
||
| 37 | * @param string $name |
||
| 38 | * @param array $data |
||
| 39 | * @return mixed $this |
||
| 40 | */ |
||
| 41 | protected function sendNotification($name, array $data) |
||
| 51 | } |
||
| 52 |