ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=0);
20 
22 
23 use ilDBInterface;
31 
32 class Factory implements DRFactoryInterface
33 {
34  public function __construct(
35  protected ilDBInterface $db
36  ) {
37  }
38 
39  public function info(): InfoFactoryInterface
40  {
41  return new InfoFactory();
42  }
43 
44  public function service(): DRInterface
45  {
46  return new DataRetrieval(
47  $this->db,
48  $this->info()
49  );
50  }
51 
52  public function filter(): DRFilterInterface
53  {
54  return new Filter();
55  }
56 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(protected ilDBInterface $db)
Definition: Factory.php:34