ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
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 
21 namespace ILIAS\Data\Text;
22 
23 class Factory
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 }
__construct(protected MarkdownFactory $markdown_factory)
Definition: Factory.php:25
markdown(?string $markdown=null)
Definition: Factory.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Builds data types.
Definition: Factory.php:35