<?php


namespace BlizzardGalaxy\ApiSupervisor\Enum\Method;

use BlizzardGalaxy\ApiSupervisor\Enum\ArrayEnumInterface;

/**
 * Keeps a list of all the starcraft methods that can be called.
 *
 * @package BlizzardGalaxy\ApiSupervisor\Enum\Method
 * @author  Petre Pătrașc <petre@dreamlabs.ro>
 */
class StarcraftApiMethod implements ArrayEnumInterface
{
    const PLAYER = 'profile';
    const LADDER = 'ladder';
    const ACHIEVEMENTS = 'achievements';
    const REWARDS = 'rewards';

    /**
     * Get all of the entries as an array.
     *
     * @return array
     */
    public static function getAllAsArray()
    {
        return [
            self::PLAYER,
            self::LADDER,
            self::ACHIEVEMENTS,
            self::REWARDS,
        ];
    }
}

<?php


namespace BlizzardGalaxy\ApiSupervisor\Enum\Method;

/**
 * Keeps a list of all the starcraft methods that can be called.
 *
 * @package BlizzardGalaxy\ApiSupervisor\Enum\Method
 * @author  Petre Pătrașc <petre@dreamlabs.ro>
 */
class StarcraftApiMethod
{
    const PLAYER = 'profile';
    const LADDER = 'ladder';
    const ACHIEVEMENTS = 'achievements';
    const REWARDS = 'rewards';
}

Remove ArrayInterface constraint for Method enums
Remove ArrayInterface constraint for Method enums
