ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 use ILIAS\UI\Component as C;
26 
27 class Factory implements C\Legacy\Factory
28 {
30 
31  public function __construct(SignalGeneratorInterface $signal_generator)
32  {
33  $this->signal_generator = $signal_generator;
34  }
35 
36  public function content(string $content): Content
37  {
38  return new Content($content, $this->signal_generator);
39  }
40 
41  public function latexContent(string $content): LatexContent
42  {
43  return new LatexContent($content, $this->signal_generator);
44  }
45 
46  public function segment(string $title, string $content): I\Legacy\Segment
47  {
48  return new Segment($title, $content);
49  }
50 }
__construct(SignalGeneratorInterface $signal_generator)
Definition: Factory.php:31
Builds a Color from either hex- or rgb values.
Definition: Factory.php:30
segment(string $title, string $content)
Definition: Factory.php:46
SignalGeneratorInterface $signal_generator
Definition: Factory.php:29