ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Step.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25class Step implements StepInterface
26{
27 protected string|StepToken $name;
31 protected array $filters;
32
33 public function __construct(
34 string|StepToken $name,
36 ) {
37 $this->name = $name;
38 $this->filters = $filters;
39 }
40
41 public function name(): string|StepToken
42 {
43 return $this->name;
44 }
45
49 public function filters(): \Generator
50 {
51 yield from $this->filters;
52 }
53}
name()
Steps are identified by the names of LOM elements, or a token to specify a step to the super-element.
Definition: Step.php:41
__construct(string|StepToken $name, FilterInterface ... $filters)
Definition: Step.php:33
string StepToken $name
Definition: Step.php:27
StepToken
The string representation of these tokens must not occur as names of metadata elements.
Definition: StepToken.php:28