ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Legacy.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Jesús López <lopez@leifos.com> Extended GPL, see docs/LICENSE */
4
6
8
13{
14
18 protected $title;
19
23 protected $legacy;
24
25 public function __construct(string $title, C\Legacy\Legacy $legacy)
26 {
27 $this->checkStringArg("title", $title);
28
29 $this->title = $title;
30 $this->legacy = $legacy;
31 }
32
36 public function getLegacyComponent() : C\Legacy\Legacy
37 {
38 return $this->legacy;
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $title, C\Legacy\Legacy $legacy)
Definition: Legacy.php:25
legacy()
Definition: legacy.php:3
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.