| 1 | <?php |
||
| 10 | class PusherManager |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $config; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * PusherManager constructor. |
||
| 19 | * |
||
| 20 | * @param array $config |
||
| 21 | */ |
||
| 22 | public function __construct(array $config) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return \Pusher |
||
| 29 | */ |
||
| 30 | public function getPusherClient() |
||
| 45 | |||
| 46 | public function setConfig(array $config) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param PusherableInterface $user |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getUserChannelName(PusherableInterface $user) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param $suffix |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getChannelName($suffix) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return mixed |
||
| 71 | */ |
||
| 72 | public function getEvent() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return mixed |
||
| 79 | */ |
||
| 80 | public function getAuthKey() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return mixed |
||
| 87 | */ |
||
| 88 | public function getSecret() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return mixed |
||
| 95 | */ |
||
| 96 | public function getAppId() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @return mixed |
||
| 103 | */ |
||
| 104 | public function getCluster() |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return mixed |
||
| 111 | */ |
||
| 112 | public function getEncrypted() |
||
| 116 | } |