There was an undefined variable `$className` here, I guess the intended variable was `$this->className`?