src/Enums/FlagEnumTrait.php
public function getNames()
    {
        $enums = [];

        foreach (static::toArray() as $name => $value) {
            if ($this->has($value)) {
                $enums[] = $name;
            }
        }

        return $enums;
    }
public function getNames()
    {
        $enums = [];

        foreach (static::toArray() as $name => $value) {
            if ($this->has($value)) {
                $enums[] = $name;
            }
        }

        return $enums;
    }
public function getNames ( ) { $ enums = [ ] ; foreach ( static :: toArray ( ) as $ name => $ value ) { if ( $ this -> has ( $ value ) ) { $ enums [ ] = $ name ; } } return $ enums ; }
Get an array of all the enum names this flag instance represents.

@return array
Get an array of all the enum names this flag instance represents .