1 | <?php |
||
9 | trait Toolkit |
||
10 | { |
||
11 | protected $app; |
||
12 | |||
13 | 45 | public function __construct(Application $app) |
|
17 | |||
18 | 3 | protected function create(string $space, array $data) : Entity |
|
22 | |||
23 | 45 | protected function dispatch(string $job, array $params = [], string $service = null) |
|
27 | |||
28 | 1 | protected function find(string $space, $params = []) : array |
|
32 | |||
33 | 1 | protected function findOne(string $space, $params = []) : ?Entity |
|
37 | |||
38 | 1 | protected function findOrCreate(string $space, $params = []) : Entity |
|
42 | |||
43 | 2 | protected function findOrFail(string $space, $params = []) : Entity |
|
47 | |||
48 | protected function fire(string $event, array $context) |
||
52 | |||
53 | 23 | protected function get(string $class) |
|
57 | |||
58 | 1 | protected function getDate() |
|
62 | |||
63 | 4 | protected function getMapper() |
|
67 | |||
68 | protected function getQueue($tube) |
||
83 | |||
84 | 1 | protected function remove(string $space, array $params = []) |
|
88 | |||
89 | 2 | protected function select($fields, string $table, array $params) |
|
93 | |||
94 | 2 | protected function insert(string $table, array $data, array $headers) |
|
98 | |||
99 | public function __debugInfo() |
||
105 | } |
||
106 |