| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class ImgShieldsUrl extends Url |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Static URL constructor. |
||
| 9 | * |
||
| 10 | * @param string $uri |
||
| 11 | * @return self |
||
| 12 | */ |
||
| 13 | public static function from(string $uri): self |
||
| 14 | { |
||
| 15 | return new self($uri); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Url constructor. |
||
| 20 | * |
||
| 21 | * @param string $uri |
||
| 22 | * @param array|null $params |
||
| 23 | */ |
||
| 24 | public function __construct(string $uri, ?array $params = null) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Merge global Img Shields params with the original params. |
||
| 31 | * |
||
| 32 | * @param array|null $globalParams |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | public function withGlobalParams(?array $globalParams = null): self |
||
| 42 | } |
||
| 43 | } |
||
| 44 |