protected function ensureClassExists($name, $stmt)
    {
        if (!$this->classExists($name)) {
            throw $this->createError(\sprintf('Class \'%s\' not found', $name), $stmt);
        }
    }
protected function ensureClassExists($name, $stmt)
    {
        if (!$this->classExists($name)) {
            throw $this->createError(\sprintf('Class \'%s\' not found', $name), $stmt);
        }
    }
protected function ensureClassExists ( $ name , $ stmt ) { if ( ! $ this -> classExists ( $ name ) ) { throw $ this -> createError ( \ sprintf ( 'Class \'%s\' not found' , $ name ) , $ stmt ) ; } }
Ensure that a referenced class exists.

@throws FatalErrorException

@param string $name
@param Stmt   $stmt
Ensure that a referenced class exists .