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{
25 public function __construct(
26 protected MarkdownFactory $markdown_factory
27 ) {
28 }
29
30 public function markdown(?string $markdown = null): MarkdownFactory|Markdown
31 {
32 if ($markdown !== null) {
33 return $this->markdown_factory->generic($markdown);
34 }
35 return $this->markdown_factory;
36 }
37}
Builds data types.
Definition: Factory.php:36
markdown(?string $markdown=null)
Definition: Factory.php:30
__construct(protected MarkdownFactory $markdown_factory)
Definition: Factory.php:25