CakeFest 2024: The Official CakePHP Conference

ReflectionNamedType::getName

(PHP 7 >= 7.1.0, PHP 8)

ReflectionNamedType::getName型の名前の文字列を取得する

説明

public ReflectionNamedType::getName(): string

パラメータ

この関数にはパラメータはありません。

戻り値

リフレクションされた型の名前を返します。

参考

add a note

User Contributed Notes 1 note

up
1
baptiste at pillot dot fr
6 months ago
Possible values for type names are:

- The name of a class, interface, or trait,
- The name of any built-in type (php 8.2): array, bool, callable, float, int, null, object, string, false, iterable, mixed, never, true, void,
- The name of any relative class type: parent, self, static.
To Top