1 | <?php |
||
8 | class EntityApi |
||
9 | { |
||
10 | use ResponseHandler; |
||
11 | |||
12 | /** |
||
13 | * @var Client |
||
14 | */ |
||
15 | private $client; |
||
16 | |||
17 | 10 | public function __construct(Client $client) |
|
21 | |||
22 | /** |
||
23 | * @param null|string $entityId |
||
24 | * |
||
25 | * @return mixed |
||
26 | */ |
||
27 | 2 | public function get($entityId = null) |
|
38 | |||
39 | /** |
||
40 | * @param string $entityId |
||
41 | * @param EntityValue[] $entityValues |
||
42 | * @param null|string $description |
||
43 | * @param null|string $newId |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | 1 | public function update($entityId, array $entityValues = [], $description = null, $newId = null) |
|
67 | |||
68 | /** |
||
69 | * @param string $entityId |
||
70 | * |
||
71 | * @return mixed |
||
72 | */ |
||
73 | 1 | public function delete($entityId) |
|
79 | |||
80 | /** |
||
81 | * @param string $entityId |
||
82 | * @param string $entityValue |
||
83 | * @return mixed |
||
84 | */ |
||
85 | 1 | public function deleteValue($entityId, $entityValue) |
|
91 | |||
92 | /** |
||
93 | * @param string $entityId |
||
94 | * @param EntityValue $entityValue |
||
95 | * |
||
96 | * @return mixed |
||
97 | */ |
||
98 | 1 | public function addValue($entityId, EntityValue $entityValue) |
|
104 | |||
105 | /** |
||
106 | * @param string $entityId |
||
107 | * @param string $entityValue |
||
108 | * @param string $expression |
||
109 | * |
||
110 | * @return mixed |
||
111 | */ |
||
112 | 1 | public function addExpression($entityId, $entityValue, $expression) |
|
120 | |||
121 | /** |
||
122 | * @param string $entityId |
||
123 | * @param string $entityValue |
||
124 | * @param string $expression |
||
125 | * |
||
126 | * @return mixed |
||
127 | */ |
||
128 | 1 | public function deleteExpression($entityId, $entityValue, $expression) |
|
134 | |||
135 | /** |
||
136 | * @param string $entityId |
||
137 | * @param EntityValue[] $entityValues |
||
138 | * @param null|string $description |
||
139 | * @param array $lookups |
||
140 | * |
||
141 | * @return mixed |
||
142 | */ |
||
143 | 1 | public function create($entityId, array $entityValues = [], $description = null, $lookups = [Entity::LOOKUP_KEYWORDS]) |
|
156 | } |
||
157 |