Gets parent class

# ReflectionClass::getParentClass

(PHP 5, PHP 7, PHP 8)

ReflectionClass::getParentClass — Gets parent class

### Description

public ReflectionClass::getParentClass(): ReflectionClass|false

Get the parent class.

### Parameters

This function has no parameters.

### Return Values

A ReflectionClass or `false` if there's no parent.

### See Also

- ReflectionClass::__construct() - Constructs a ReflectionClass

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open