ReflectionNamedType::getName

(PHP 7 >= 7.1.0, PHP 8)

ReflectionNamedType::getName โ€” ๅž‹ใฎๅๅ‰ใฎๆ–‡ๅญ—ๅˆ—ใ‚’ๅ–ๅพ—ใ™ใ‚‹

่ชฌๆ˜Ž

public function ReflectionNamedType::getName(): string

ใƒ‘ใƒฉใƒกใƒผใ‚ฟ

ใ“ใฎ้–ขๆ•ฐใซใฏใƒ‘ใƒฉใƒกใƒผใ‚ฟใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚

ๆˆปใ‚Šๅ€ค

ใƒชใƒ•ใƒฌใ‚ฏใ‚ทใƒงใƒณใ•ใ‚ŒใŸๅž‹ใฎๅๅ‰ใ‚’่ฟ”ใ—ใพใ™ใ€‚

ๅ‚่€ƒ

๏ผ‹add a note

User Contributed Notes 1 note

up
8
baptiste at pillot dot fr ยถ
2 years 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.