php8.5
Home/ Manual/ reflection / reflectionnamedtype/ ReflectionNamedType::getName

ReflectionNamedType::getName

PHP function Edit on GitHub ✎

(PHP 7 >= 7.1.0, PHP 8)

Get the name of the type as a string

Description

ReflectionNamedType::getName(): string

Parameters Parameters

Return Values

Returns the name of the type being reflected.

See Also

  • ReflectionType::__toString

Source: reference/reflection/reflectionnamedtype/getname.xml · from the official PHP manual (php/doc-en)