| 1 | <?php |
||
| 19 | trait ConnectionTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var ConnectionInterface|string |
||
| 23 | */ |
||
| 24 | protected $connection = Connections::DEFAULT_CONNECTION; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $value |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function connection($value) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param $value |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | public function setConnection($value) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return ConnectionInterface |
||
| 47 | * @throws \yii\base\InvalidConfigException |
||
| 48 | */ |
||
| 49 | public function getConnection(): ConnectionInterface |
||
| 61 | } |
||
| 62 |