ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
NullReader.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
27 class NullReader implements ReaderInterface
28 {
29  public function vocabulary(string $vocab_id): VocabularyInterface
30  {
31  return new NullVocabulary();
32  }
33 
37  public function vocabulariesForSlots(
38  SlotIdentifier ...$slots
39  ): \Generator {
40  yield from [];
41  }
42 
46  public function activeVocabulariesForSlots(
47  SlotIdentifier ...$slots
48  ): \Generator {
49  yield from [];
50  }
51 }
activeVocabulariesForSlots(SlotIdentifier ... $slots)
Definition: NullReader.php:46
vocabulariesForSlots(SlotIdentifier ... $slots)
Definition: NullReader.php:37