| 1 | <?php |
||
| 7 | class Currie |
||
| 8 | { |
||
| 9 | const RELATION = '/{rel}'; |
||
| 10 | |||
| 11 | private $name; |
||
| 12 | |||
| 13 | private $href; |
||
| 14 | |||
| 15 | private $templated = false; |
||
| 16 | |||
| 17 | private $resources; |
||
| 18 | |||
| 19 | 2 | public function __construct($name, $href, $templated, array $resources) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getName() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getHref() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return boolean |
||
| 49 | */ |
||
| 50 | public function isTemplated() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return CurrieResource[] |
||
| 57 | */ |
||
| 58 | public function getResources() |
||
| 62 | } |
||
| 63 |