ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Legacy.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
6
9
14class Legacy implements C\Legacy\Legacy
15{
17
21 private $content;
22
23
28 public function __construct($content)
29 {
30 $this->checkStringArg("content", $content);
31
32 $this->content = $content;
33 }
34
38 public function getContent()
39 {
40 return $this->content;
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
__construct($content)
Legacy constructor.
Definition: Legacy.php:28
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
trait ComponentHelper
Provides common functionality for component implementations.