1 | <?php |
||
23 | class FormattedRoute |
||
24 | { |
||
25 | use AccessorTrait; |
||
26 | |||
27 | /** |
||
28 | * The relative URL created by {@link Route::format()}. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $url; |
||
33 | |||
34 | protected function get_url() |
||
38 | |||
39 | protected function get_absolute_url() |
||
43 | |||
44 | /** |
||
45 | * The {@link Route} instance that created this instance. |
||
46 | * |
||
47 | * @var Route |
||
48 | */ |
||
49 | protected $route; |
||
50 | |||
51 | protected function get_route() |
||
55 | |||
56 | /** |
||
57 | * Initialize the {@link $url} and {@link $route} properties. |
||
58 | * |
||
59 | * @param string $url |
||
60 | * @param Route $route |
||
61 | */ |
||
62 | public function __construct($url, Route $route) |
||
63 | { |
||
64 | $this->url = $url; |
||
65 | $this->route = $route; |
||
66 | } |
||
67 | |||
68 | public function __toString() |
||
72 | } |
||
73 |