1 | <?php |
||
18 | trait ConnectionTrait |
||
19 | { |
||
20 | /** |
||
21 | * @var ConnectionInterface|null |
||
22 | */ |
||
23 | protected $connection; |
||
24 | |||
25 | /** |
||
26 | * @param $value |
||
27 | * @return $this |
||
28 | */ |
||
29 | public function connection($value) |
||
33 | |||
34 | /** |
||
35 | * @param $value |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function setConnection($value) |
||
43 | |||
44 | /** |
||
45 | * @return ConnectionInterface |
||
46 | */ |
||
47 | public function getConnection(): ConnectionInterface |
||
51 | |||
52 | /** |
||
53 | * @param $connection |
||
54 | * @return ConnectionInterface |
||
55 | */ |
||
56 | protected function resolveConnection($connection) |
||
64 | } |
||
65 |