public function __construct($type, $value) { $this->validateType($type); $this->type = $type; $this->value = $value; }