1 | <?php |
||
16 | class ApiUrl implements Interfaces\SourceAccessorInterface |
||
17 | { |
||
18 | |||
19 | use Traits\SourceMagic; |
||
20 | |||
21 | private static $source = ''; |
||
22 | private $dotName = ''; |
||
23 | |||
24 | public function __construct($className = null, $text = '') |
||
28 | |||
29 | /** |
||
30 | * Set root url of current project API. This can be relative or absolute url. |
||
31 | * |
||
32 | * Example: |
||
33 | * |
||
34 | * ``` |
||
35 | * ApiUrl::setRoot('/mangan/api); |
||
36 | * ``` |
||
37 | * |
||
38 | * @param string $apiUrl |
||
39 | */ |
||
40 | public static function setRoot($apiUrl) |
||
44 | |||
45 | public function method($name) |
||
50 | |||
51 | public function property($name) |
||
56 | |||
57 | public static function __callStatic($name, $arguments) |
||
61 | |||
62 | public function __toString() |
||
66 | |||
67 | } |
||
68 |