Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | class SlackChannel extends Component implements ChannelInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var Client|array|string |
||
22 | */ |
||
23 | public $httpClient; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public function init() |
||
29 | { |
||
30 | parent::init(); |
||
31 | if (!isset($this->httpClient)) { |
||
32 | $this->httpClient = [ |
||
33 | 'class' => Client::className(), |
||
|
|||
34 | ]; |
||
35 | } |
||
36 | $this->httpClient = Instance::ensure($this->httpClient, Client::className()); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param NotifiableInterface $recipient |
||
41 | * @param NotificationInterface $notification |
||
42 | * @return Response |
||
43 | */ |
||
44 | public function send(NotifiableInterface $recipient, NotificationInterface $notification) |
||
55 | } |
||
56 | |||
57 | } |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.