1 | <?php |
||
24 | class GsspToken implements AvailableTokenInterface |
||
|
|||
25 | { |
||
26 | /** |
||
27 | * @var ViewConfig |
||
28 | */ |
||
29 | private $viewConfig; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $type; |
||
35 | |||
36 | /** |
||
37 | * @param ViewConfig $viewConfig |
||
38 | * @param $type |
||
39 | * @return GsspToken |
||
40 | */ |
||
41 | public static function fromViewConfig(ViewConfig $viewConfig, $type) |
||
49 | |||
50 | /** |
||
51 | * GsspToken constructor. |
||
52 | * @param ViewConfig $viewConfig |
||
53 | * @param string $type |
||
54 | */ |
||
55 | private function __construct(ViewConfig $viewConfig, $type) |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getRoute() |
||
68 | |||
69 | /** |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function getType() |
||
76 | |||
77 | /** |
||
78 | * @return int |
||
79 | */ |
||
80 | public function getLoaLevel() |
||
84 | |||
85 | /** |
||
86 | * @return boolean |
||
87 | */ |
||
88 | public function isGssp() |
||
92 | |||
93 | public function getRouteParams() |
||
99 | |||
100 | public function getViewConfig() |
||
104 | } |
||
105 |