Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class DependencyUrl |
||
6 | { |
||
7 | /** |
||
8 | * @var Url |
||
9 | */ |
||
10 | private $url; |
||
11 | |||
12 | /** |
||
13 | * @var Url|null |
||
14 | */ |
||
15 | private $svg; |
||
16 | |||
17 | /** |
||
18 | * DependencySvg constructor. |
||
19 | * |
||
20 | * @param Url $url |
||
21 | * @param Url|null $svg |
||
22 | */ |
||
23 | public function __construct(Url $url, Url $svg = null) |
||
24 | { |
||
25 | $this->url = $url; |
||
26 | $this->svg = $svg; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Retrieve a dependency SVG image. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function svg(): string |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Retrieve the Dependency URL. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function url(): string |
||
49 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.