ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullReader.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
25 class NullReader implements ReaderInterface
26 {
27  public function definition(): DefinitionInterface
28  {
29  return new NullDefinition();
30  }
31 
35  public function subDefinitions(): \Generator
36  {
37  yield from [];
38  }
39 
40  protected function name(): string
41  {
42  return '';
43  }
44 
45  protected function unique(): bool
46  {
47  return false;
48  }
49 
50  protected function dataType(): Type
51  {
52  return Type::NULL;
53  }
54 }