ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
BooleanValue.php
Go to the documentation of this file.
1<?php
2
4
6{
7 public function setValue($boolean)
8 {
9 if (!is_bool($boolean)) {
10 throw new InvalidArgumentException("The value given must be a boolean! See php-documentation is_bool().");
11 }
12 $this->value = $boolean;
13 }
14}
An exception for terminatinating execution or to throw for unit testing.