ReflectionNamedType::getName
PHP Manual
PHP Manual»ReflectionNamedType»ReflectionNamedType::getName

ReflectionNamedType::getName

(PHP 7 >= 7.1.0, PHP 8)

ReflectionNamedType::getNameGet the name of the type as a string

Description

public function ReflectionNamedType::getName(): string

Parameters

This function has no parameters.

Return Values

Returns the name of the type being reflected.

See Also

To Top