value = self::STANDART_VALUE; return; } if (is_numeric($value)) { $number = (int) $value; if ($number >= 0 && $number <= 1) { $this->value = (bool) $value; return; } } throw new SetNotPossibleException("It\'s not possible to set <<$value>> of type <<".gettype($value).'>> for class <<'.get_class().'>>. Just 0 and 1 are allowed!'); } }