19 declare(strict_types=1);
54 protected function init(): void
56 $this->
title = $this->path_factory
58 ->withNextStep(
'general')
59 ->withNextStep(
'title')
60 ->withNextStep(
'string')
64 ->withNextStep(
'general')
65 ->withNextStep(
'description')
66 ->withNextStep(
'string')
70 ->withNextStep(
'general')
71 ->withNextStep(
'language')
73 $this->
keywords = $this->path_factory
75 ->withNextStep(
'general')
76 ->withNextStep(
'keyword')
77 ->withNextStep(
'string')
80 $first_type_builder = $this->path_factory
82 ->withNextStep(
'educational')
83 ->withNextStep(
'learningResourceType')
84 ->withAdditionalFilterAtCurrentStep(FilterType::INDEX,
'0');
86 $this->first_learning_resource_type = $first_type_builder
87 ->withNextStep(
'value')
90 $this->first_learning_resource_type_source = $first_type_builder
91 ->withNextStep(
'source')
94 $this->first_discipline = $this->path_factory
96 ->withNextStep(
'classification')
97 ->withNextStep(
'purpose')
98 ->withNextStep(
'value')
100 ->withNextStepToSuperElement()
101 ->withNextStep(
'source')
103 ->withNextStepToSuperElement()
104 ->withNextStepToSuperElement()
105 ->withNextStep(
'taxonPath')
106 ->withNextStep(
'taxon')
107 ->withAdditionalFilterAtCurrentStep(FilterType::INDEX,
'0')
108 ->withNextStep(
'entry')
109 ->withNextStep(
'string')
116 $this->first_publisher = $this->path_factory
118 ->withNextStep(
'lifeCycle')
119 ->withNextStep(
'contribute')
120 ->withNextStep(
'role')
121 ->withNextStep(
'value')
123 ->withNextStepToSuperElement()
124 ->withNextStep(
'source')
126 ->withNextStepToSuperElement()
127 ->withNextStepToSuperElement()
128 ->withNextStep(
'entity')
129 ->withAdditionalFilterAtCurrentStep(FilterType::INDEX,
'0')
134 ->withNextStep(
'rights')
135 ->withNextStep(
'description')
136 ->withNextStep(
'string')
138 $this->has_copyright = $this->path_factory
140 ->withNextStep(
'rights')
141 ->withNextStep(
'copyrightAndOtherRestrictions')
142 ->withNextStep(
'value')
144 $this->has_copyright_source = $this->path_factory
146 ->withNextStep(
'rights')
147 ->withNextStep(
'copyrightAndOtherRestrictions')
148 ->withNextStep(
'source')
177 for ($i = $first_index; $i <= $last_index; $i++) {
178 $indices[] = (string) $i;
181 return $this->path_factory
183 ->withNextStep(
'general')
184 ->withNextStep(
'keyword')
185 ->withNextStep(
'string')
186 ->withNextStepToSuperElement()
187 ->withAdditionalFilterAtCurrentStep(FilterType::INDEX, ...$indices)
223 return $this->path_factory
225 ->withNextStep(
'lifeCycle')
226 ->withNextStep(
'contribute')
227 ->withNextStep(
'role')
228 ->withNextStep(
'value')
230 ->withNextStepToSuperElement()
231 ->withNextStep(
'source')
233 ->withNextStepToSuperElement()
234 ->withNextStepToSuperElement()
235 ->withNextStep(
'entity')
236 ->withAdditionalFilterAtCurrentStep(FilterType::INDEX, (
string) $index)