/** * @param null $value * @param int $flag A flag used by the `ValueType::getType()` method (not used here) * @throws \ReflectionException if the parameter is not null */ public function __construct($value, $flag = ValueType::MODE_STRICT) { if (!ValueType::isNull($value)) { throw new \ReflectionException(sprintf(__METHOD__ . ' expects parameter one to be NULL, %s given', gettype($value))); } $this->setReadOnlyProperties($this::$_read_only); $this->type = ValueType::TYPE_NULL; $this->value = $value; }