@@ -37,16 +37,16 @@ class Transition extends HierarchyElement
3737 /**
3838 * URL variables.
3939 *
40- * @var StructureElement []
40+ * @var BasicStructureElement []
4141 */
4242 public array $ url_variables = [];
4343
4444 /**
4545 * Data variables.
4646 *
47- * @var StructureElement |null
47+ * @var ObjectStructureElement|BasicStructureElement |null
4848 */
49- public ?StructureElement $ data_variables = null ;
49+ public ?BasicStructureElement $ data_variables = null ;
5050
5151 /**
5252 * The request.
@@ -65,7 +65,7 @@ class Transition extends HierarchyElement
6565 /**
6666 * Structures used (if any).
6767 *
68- * @var StructureElement []
68+ * @var BasicStructureElement []
6969 */
7070 public array $ structures = [];
7171
@@ -94,7 +94,7 @@ public function parse(object $object): self
9494 $ this ->href = $ href ->content ?? $ href ;
9595
9696 if (isset ($ object ->attributes ->hrefVariables )) {
97- $ deps = [];
97+ $ deps = [];
9898 foreach ($ object ->attributes ->hrefVariables ->content as $ variable ) {
9999 $ struct = (new ObjectStructureElement ())->get_class ($ variable ->element );
100100 $ this ->url_variables [] = $ struct ->parse ($ variable , $ deps );
@@ -165,10 +165,6 @@ public function build_url(string $base_url = '', bool $clean = false): string
165165 $ vars = [];
166166 if ($ this ->url_variables !== []) {
167167 foreach ($ this ->url_variables as $ item ) {
168- if (!is_subclass_of ($ item , BasicStructureElement::class)) {
169- continue ;
170- }
171-
172168 $ vars [$ item ->key ->value ] = $ item ->string_value (true );
173169 }
174170 }
0 commit comments