ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullNavigator.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
27 {
28  public function nextStep(): ?NavigatorInterface
29  {
30  return new NullNavigator();
31  }
32 
33  public function previousStep(): ?NavigatorInterface
34  {
35  return new NullNavigator();
36  }
37 
38  public function elementsAtFinalStep(): \Generator
39  {
40  yield from [];
41  }
42 
44  {
45  return new NullElement();
46  }
47 
48  public function elements(): \Generator
49  {
50  yield from [];
51  }
52 
53  public function lastElement(): ?ElementInterface
54  {
55  return new NullElement();
56  }
57 }
elements()
Returns the elements at the current step in the path.
lastElementAtFinalStep()
Returns only the first element of those at the end of the path, if one exists.
nextStep()
Returns null if there is no next step.
elementsAtFinalStep()
Returns the elements at the end of the path.
lastElement()
Returns only the first element at the current step, if one exists.