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
26
27class 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}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
__construct(SignalGeneratorInterface $signal_generator)
Definition: Factory.php:31
segment(string $title, string $content)
Definition: Factory.php:46
SignalGeneratorInterface $signal_generator
Definition: Factory.php:29