ReviewOS

also looking at this

meemalabs/meema-client-php

Video Functionalities

#69
Merged glennmichael123 wants to merge video-functionalities into main
4 files +190 -32
src/Functions/Image.phpmodified+3-31
Changes to src/Functions/Image.php
@@ -3,19 +3,17 @@
33namespace Meema\MeemaClient\Functions;
44
55use Meema\MeemaClient\Client;
6use Meema\MeemaClient\Traits\UrlResponse;
67
78class Image
89{
10 use UrlResponse;
11
912 /**
1013 * @var \Meema\MeemaClient\Client
1114 */
1215 protected $client;
1316
14 /**
15 * @var int
16 */
17 protected $id;
18
1917 /**
2018 * @var array
2119 */
@@ -1346,30 +1344,4 @@ class Image
13461344
13471345 return $this;
13481346 }
1349
1350 /**
1351 * Convert all parameters to string url.
1352 *
1353 * @return string
1354 */
1355 public function toUrl()
1356 {
1357 $queryParams = '';
1358
1359 $index = 0;
1360
1361 foreach ($this->args as $key => $param) {
1362 $separator = '?';
1363
1364 if ($index) {
1365 $separator = '&';
1366 }
1367
1368 $queryParams .= "{$separator}{$key}={$param}";
1369
1370 $index++;
1371 }
1372
1373 return "https://dev-ops.mee.ma/glenn/1/5/people.jpg{$queryParams}";
1374 }
13751347}