ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
22
31
32class 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}
__construct(protected ilDBInterface $db)
Definition: Factory.php:34
Interface ilDBInterface.