| 1 | <?php |
||
| 12 | class Connection |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var AdapterInterface |
||
| 16 | */ |
||
| 17 | protected $adapter; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Connection constructor. |
||
| 21 | * @param AdapterInterface $adapter |
||
| 22 | */ |
||
| 23 | 2 | public function __construct(AdapterInterface $adapter) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Uses the configured adapter to send a message. |
||
| 30 | * |
||
| 31 | * @param AbstractMessage $message |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 1 | public function send(AbstractMessage $message) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return AdapterInterface |
||
| 41 | */ |
||
| 42 | 1 | public function getAdapter() |
|
| 46 | } |
||
| 47 |