public function __construct($operator) { parent::__construct('The given operator ' . $operator . ' is unknown!'); $this->operator = $operator; }