1 | <?php |
||
30 | class SlackProvider |
||
31 | { |
||
32 | const ALLOWED_RESPONSE_STATUSES = [ |
||
33 | Response::HTTP_OK, |
||
34 | Response::HTTP_MOVED_PERMANENTLY, |
||
35 | Response::HTTP_FOUND, |
||
36 | ]; |
||
37 | |||
38 | /** @var array */ |
||
39 | private $config; |
||
40 | |||
41 | /** @var Client */ |
||
42 | private $client; |
||
43 | |||
44 | /** |
||
45 | * SlackProvider constructor. |
||
46 | * |
||
47 | * @param array $config |
||
48 | */ |
||
49 | public function __construct(array $config) |
||
54 | |||
55 | /** |
||
56 | * @param string $postBody |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function send(string $postBody): bool |
||
82 | |||
83 | /** |
||
84 | * @deprecated |
||
85 | * @param array $postBody |
||
86 | * @return string |
||
87 | */ |
||
88 | private function getApiUrl(array $postBody) |
||
98 | } |
||
99 |
This method has been deprecated.