1 | <?php |
||
21 | class Href implements HrefInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $path; |
||
27 | |||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | private $templated; |
||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @param string $path |
||
37 | * @param bool $templated |
||
38 | */ |
||
39 | 11 | public function __construct(string $path, bool $templated = false) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 3 | public function getPath(): string |
|
52 | |||
53 | /** |
||
54 | * Is href templated? |
||
55 | * |
||
56 | * @return bool |
||
57 | */ |
||
58 | 3 | public function isTemplated(): bool |
|
62 | } |
||
63 |