ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Legacy.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
12
16class Legacy extends Slate implements ISlate\Legacy
17{
21 protected $contents = [];
22
23 public function __construct(
24 SignalGeneratorInterface $signal_generator,
25 string $name,
27 ILegacy $content
28 ) {
29 parent::__construct($signal_generator, $name, $symbol);
30 $this->contents = [$content];
31 }
32
33 public function getContents() : array
34 {
35 return $this->contents;
36 }
37
38 public function withMappedSubNodes(callable $f)
39 {
40 return $this;
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
__construct(SignalGeneratorInterface $signal_generator, string $name, Symbol $symbol, ILegacy $content)
Definition: Legacy.php:23
This describes a symbol.
Definition: Symbol.php:12
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc