ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilTermsOfServiceHistorizedCriterion.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
11 private $id;
13 private $config = [];
14
20 public function __construct(string $id, array $config)
21 {
22 $this->id = $id;
23 $this->config = $config;
24 }
25
26
31 {
32 return new ilTermsOfServiceCriterionConfig($this->config);
33 }
34
38 public function getCriterionId() : string
39 {
40 return $this->id;
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceCriterionConfig.
__construct(string $id, array $config)
ilTermsOfServiceHistorizedCriterion constructor.
Interface ilTermsOfServiceEvaluableCriterion.