ReflectionEnum::getCase 列挙型の特定の case を返す &reftitle.description; public ReflectionEnumUnitCaseReflectionEnum::getCase stringname 列挙型の特定の case を名前で指定すると、 リフレクションオブジェクトを返します。 指定された case が定義されていない場合、 ReflectionException がスローされます。 &reftitle.parameters; name 取得する case の名前。 &reftitle.returnvalues; ReflectionEnumUnitCase または ReflectionEnumBackedCase のインスタンスを適切に返します。 &reftitle.examples; <methodname>ReflectionEnum::getCase</methodname> の例 getCase('Clubs'); var_dump($rCase->getValue()); ?> ]]> &example.outputs; &reftitle.seealso; 列挙型(Enum) ReflectionEnum::getCases ReflectionEnum::hasCase ReflectionEnum::isBacked