ReflectionEnum::isBacked

Determines if an Enum is a Backed Enum

&reftitle.description; public `bool` `ReflectionEnum::isBacked`

A Backed Enum is one that has a native backing scalar equivalent, either a `string` or an `int`. Not all Enums are backed.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

&true; if the Enum has a backing scalar, &false; if not.

&reftitle.examples;

### `ReflectionEnum::isBacked` example

    <?php
    enum Suit
    {
        case Hearts;
        case Diamonds;
        case Clubs;
        case Spades;
    }

    enum BackedSuit: string
    {
        case Hearts = 'H';
        case Diamonds = 'D';
        case Clubs = 'C';
        case Spades = 'S';
    }

    var_dump((new ReflectionEnum(Suit::class))->isBacked());
    var_dump((new ReflectionEnum(BackedSuit::class))->isBacked());
    ?>

&example.outputs;

    bool(false)
    bool(true)

&reftitle.seealso;

- Enumerations
- `ReflectionEnum::getBackingType`