ReviewOS

also looking at this

meemalabs/meema-client-php

Tags model

#14
Merged glennmichael123 wants to merge tags-model-2 into main
5 files +165 -74

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

src/Models/Folder.phpmodified+12-0
Changes to src/Models/Folder.php
@@ -247,4 +247,16 @@ class Folder
247247
248248 return (new Tag($client))->setFolder($this);
249249 }
250
251 /**
252 * Initialize the tags model.
253 *
254 * @return Meema\MeemaApi\Models\Tag
255 */
256 public function tags(): Tag
257 {
258 $client = new Client($this->client->getAccessKey());
259
260 return (new Tag($client))->setFolder($this);
261 }
250262}
src/Models/Media.phpmodifiedformatting only+1-0
Changes to src/Models/Media.php
@@ -201,6 +201,7 @@ class Media
201201 return (new Tag($client))->setMedia($this);
202202 }
203203
204
204205 /**
205206 * Fetch the media for the folder.
206207 *