ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
22
29
30class Factory implements DRFactoryInterface
31{
32 public function __construct(
33 protected ilDBInterface $db
34 ) {
35 }
36
37 public function info(): InfoFactoryInterface
38 {
39 return new InfoFactory();
40 }
41
42 public function service(): DRInterface
43 {
44 return new DataRetrieval(
45 $this->db,
46 $this->info()
47 );
48 }
49
50 public function filter(): DRFilterInterface
51 {
52 return new Filter();
53 }
54}
__construct(protected ilDBInterface $db)
Definition: Factory.php:32
Interface ilDBInterface.