phpday 2027 - Call for Papers

ReflectionAttribute::getName

(PHP 8)

ReflectionAttribute::getName — アトリビュートの名前を取得する

説明

public function ReflectionAttribute::getName(): string

アトリビュートの名前を取得します。

名前は、アトリビュートを宣言した時点で、 その箇所で有効なインポートと名前空間に従って解決されます。 返される名前はアトリビュートの完全修飾クラス名で、先頭のバックスラッシュは付きません。 このメソッドは、アトリビュートクラスが存在するかどうかを確かめません。

パラメータ

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

戻り値

アトリビュートの名前を返します。

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top