ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Legacy.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
32 class Legacy extends Slate implements ISlate\Legacy
33 {
37  protected array $contents = [];
38 
39  public function __construct(
41  string $name,
43  ILegacy $content
44  ) {
45  parent::__construct($signal_generator, $name, $symbol);
46  $this->contents = [$content];
47  }
48 
52  public function getContents(): array
53  {
54  return $this->contents;
55  }
56 
57  public function withMappedSubNodes(callable $f): ISlate\Legacy
58  {
59  return $this;
60  }
61 }
This describes a symbol.
Definition: Symbol.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:21
__construct(Container $dic, ilPlugin $plugin)
__construct(SignalGeneratorInterface $signal_generator, string $name, Symbol $symbol, ILegacy $content)
Definition: Legacy.php:39