private function setParam($to_this) { if (!is_string($to_this) && !is_null($to_this)) { throw new InvalidArgumentException("Please provide a string as parameter!"); } else { return $to_this; } }