ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Step.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
25 class Step implements StepInterface
26 {
27  protected string|StepToken $name;
31  protected array $filters;
32 
33  public function __construct(
34  string|StepToken $name,
35  FilterInterface ...$filters
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
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:27
__construct(string|StepToken $name, FilterInterface ... $filters)
Definition: Step.php:33