ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
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=1);
20 
22 
24 
25 class 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