1 | <?php |
||
10 | trait Toolkit |
||
11 | { |
||
12 | protected $app; |
||
13 | |||
14 | 45 | public function __construct(Application $app) |
|
18 | |||
19 | 3 | protected function create(string $space, array $data) : Entity |
|
23 | |||
24 | 45 | protected function dispatch(string $job, array $params = [], string $service = null) |
|
28 | |||
29 | 1 | protected function find(string $space, $params = []) : array |
|
33 | |||
34 | 1 | protected function findOne(string $space, $params = []) : ?Entity |
|
38 | |||
39 | 1 | protected function findOrCreate(string $space, $params = []) : Entity |
|
43 | |||
44 | 2 | protected function findOrFail(string $space, $params = []) : Entity |
|
48 | |||
49 | protected function fire(string $event, array $context) |
||
53 | |||
54 | 23 | protected function get(string $class) |
|
58 | |||
59 | 1 | protected function getDate() |
|
63 | |||
64 | 4 | protected function getMapper() |
|
68 | |||
69 | 3 | protected function getRepository($space) |
|
76 | |||
77 | protected function getQueue($tube) |
||
92 | |||
93 | 1 | protected function remove(string $space, array $params = []) |
|
97 | |||
98 | 2 | protected function select($fields, string $table, array $params) |
|
102 | |||
103 | 2 | protected function insert(string $table, array $data, array $headers) |
|
107 | |||
108 | public function __debugInfo() |
||
114 | } |
||
115 |