1 | <?php |
||
21 | class Pubu extends Object |
||
22 | { |
||
23 | /** |
||
24 | * @var string The target remote url send message to. |
||
25 | */ |
||
26 | public $remote; |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | 3 | public function init() |
|
39 | |||
40 | /** |
||
41 | * @param null|string $text |
||
42 | * @param array $attachments |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 2 | public function send($text = null, $attachments = []) |
|
57 | |||
58 | /** |
||
59 | * @param string $text |
||
60 | * @param array $attachments |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | 2 | private function getPayload($text, $attachments) |
|
79 | } |
||
80 | |||
81 |