ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25class Factory implements P\Factory
26{
27 public function __construct(
28 protected Listing\Factory $listing_factory,
29 protected Secondary\Factory $secondary_factory,
30 ) {
31 }
32
33 public function standard(string $title, $content): Standard
34 {
35 return new Standard($title, $content);
36 }
37
38 public function sub(string $title, $content): Sub
39 {
40 return new Sub($title, $content);
41 }
42
43 public function report(string $title, $sub_panels): Report
44 {
45 return new Report($title, $sub_panels);
46 }
47
48 public function secondary(): Secondary\Factory
49 {
50 return $this->secondary_factory;
51 }
52
53 public function listing(): Listing\Factory
54 {
55 return $this->listing_factory;
56 }
57}
report(string $title, $sub_panels)
Definition: Factory.php:43
__construct(protected Listing\Factory $listing_factory, protected Secondary\Factory $secondary_factory,)
Definition: Factory.php:27