ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 public function __construct(
28 protected ilDBInterface $db
29 ) {
30 }
31
32 public function repository(): Repository
33 {
34 return new Repository($this->db);
35 }
36
37 public function info(): Info
38 {
39 return new Info();
40 }
41
42 public function infoCollection(): InfoCollection
43 {
44 return new InfoCollection();
45 }
46
47 public function xmlReader(): XMLReader
48 {
49 return new XMLReader($this);
50 }
51
52 public function xmlWriter(): XMLWriter
53 {
54 return new XMLWriter();
55 }
56}
__construct(protected ilDBInterface $db)
Definition: Factory.php:27
Interface ilDBInterface.