1 | <?php |
||
13 | class TwilioChannel implements ChannelInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var ClientFactoryInterface |
||
17 | */ |
||
18 | private $twilioClientFactory; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $defaults; |
||
24 | |||
25 | /** |
||
26 | * @param ClientFactoryInterface $twilioClientFactory |
||
27 | * @param array $defaults |
||
28 | */ |
||
29 | 16 | public function __construct( |
|
36 | |||
37 | 5 | public function supports($recipient) |
|
38 | { |
||
39 | 5 | if (is_object($recipient)) { |
|
40 | 4 | return $recipient instanceof PhoneRecipientInterface; |
|
41 | } |
||
42 | |||
43 | 1 | if (is_string($recipient)) { |
|
44 | 1 | return true; |
|
45 | } |
||
46 | |||
47 | return false; |
||
48 | } |
||
49 | |||
50 | 1 | public function configure(OptionsResolver $resolver) |
|
64 | |||
65 | 10 | public function handle(Delivery $delivery) |
|
79 | } |
||
80 |