1 | <?php |
||
19 | class Asset extends HttpApi |
||
20 | { |
||
21 | /** |
||
22 | * Create an asset. |
||
23 | * {@link https://localise.biz/api/docs/assets/createasset}. |
||
24 | * |
||
25 | * @param string $projectKey |
||
26 | * @param string $id |
||
27 | * |
||
28 | * @return AssetModel|ResponseInterface |
||
29 | * |
||
30 | * @throws Exception |
||
31 | */ |
||
32 | public function create(string $projectKey, string $id) |
||
56 | |||
57 | /** |
||
58 | * Patch an asset. |
||
59 | * {@link https://localise.biz/api/docs/assets/patchasset}. |
||
60 | * |
||
61 | * @param string $projectKey |
||
62 | * @param string $id |
||
63 | * @param string $type |
||
64 | * @param string $name |
||
65 | * @param string $context |
||
66 | * @param string $notes |
||
67 | * |
||
68 | * @return AssetModel|ResponseInterface |
||
69 | * |
||
70 | * @throws Exception |
||
71 | */ |
||
72 | public function patch(string $projectKey, string $id, $type = null, $name = null, $context = null, $notes = null) |
||
106 | } |
||
107 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: