ILIAS  release_7 Revision v7.30-3-g800a261c036
Sub.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 Sub extends Panel implements C\Panel\Sub
15{
17
22 private $card = null;
23
27 public function withCard(C\Card\Card $card)
28 {
29 $clone = clone $this;
30 $clone->card = $card;
31 return $clone;
32 }
33
37 public function getCard()
38 {
39 return $this->card;
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
trait ComponentHelper
Provides common functionality for component implementations.