1 | <?php |
||
12 | class AdUrlParser |
||
13 | { |
||
14 | /** |
||
15 | * @var \League\Uri\Interfaces\Uri|\Psr\Http\Message\UriInterface |
||
16 | */ |
||
17 | protected $url; |
||
18 | |||
19 | /** |
||
20 | * @var |
||
21 | */ |
||
22 | protected $id; |
||
23 | /** |
||
24 | * @var |
||
25 | */ |
||
26 | protected $category; |
||
27 | |||
28 | /** |
||
29 | * AdUrlParser constructor. |
||
30 | * @param $url |
||
31 | */ |
||
32 | 30 | public function __construct($url) |
|
47 | |||
48 | /** |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 8 | public function getCategory() |
|
55 | |||
56 | /** |
||
57 | * @return mixed |
||
58 | */ |
||
59 | 18 | public function getId() |
|
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 12 | public function __toString() |
|
71 | } |
||
72 |