public function __construct($id, $value, $type) { $this->value = $value; $this->id = $id; $this->type = $type; parent::__construct('The condition with id ' . $id . ' the value "' . $value . '" does not match the type ' . $type, 0); }