Returns an array of values that the type may have if the type is an enumeration.

@return string[] The valid enumeration values.
13086
public function getEnumerations()
    {
        $enums = array();
        foreach ($this->element->getElementsByTagName('enumeration') as $enum) {
            $enums[] = $enum->getAttribute('value');
        };
        return $enums;
    }
956550
public function getValues() {
        $exploded = explode(",", $this->getValue());
        $values = array();
        foreach ($exploded as $entry){
            $values[] = trim($entry);
        }

        return $values;
    }
551799
public function getWritableValues(): array
    {
        $result = array();

        foreach ($this->_definition as $key => $value) {
            if ($this->isWritable($key)) {
                $result[$key] = $this->$key;
            }
        }

        return $result;
    }
1024784
public function getEnumerators(): array
    {
        $enumeration = $this->enumeration;
        $enumerators = [];
        foreach ($this->getOrdinals() as $ord) {
            $enumerators[] = $enumeration::byOrdinal($ord);
        }
        return $enumerators;
    }
585580
public function getPhoneTypeAllowableValues()
    {
        return [
            self::PHONE_TYPE_CELL,
            self::PHONE_TYPE_HOME,
            self::PHONE_TYPE_WORK,
            self::PHONE_TYPE_OTHER,
            self::PHONE_TYPE_EMPTY,
        ];
    }
893725
public function getStandingLevelAllowableValues()
    {
        return [
            self::STANDING_LEVEL_BAD,
            self::STANDING_LEVEL_EXCELLENT,
            self::STANDING_LEVEL_GOOD,
            self::STANDING_LEVEL_NEUTRAL,
            self::STANDING_LEVEL_TERRIBLE,
        ];
    }
588718
public function getPossibleReturnTypes() : array
    {
        $types = [];
        if ($this->hasReturnType()) {
            $types[] = $this->getReturnType();
            if ($types[0]->allowsNull()) {
                $types[] = null;
            }
        }
        return $types;
    }
173212
public function getActionAllowableValues()
    {
        return [
            self::ACTION_ADD,
            self::ACTION_ASSEMBLE,
            self::ACTION_CONFIGURE,
            self::ACTION_ENTER_PASSWORD,
            self::ACTION_LOCK,
            self::ACTION_MOVE,
            self::ACTION_REPACKAGE,
            self::ACTION_SET_NAME,
            self::ACTION_SET_PASSWORD,
            self::ACTION_UNLOCK,
        ];
    }
298667
public function getValues()
    {
        $contentType = $this->getContenttype();
        if (!isset($contentType['fields'])) {
            return [];
        }

        $allValues = $this->toArray();

        return array_intersect_key($allValues, ($contentType['fields']));
    }
1364852
public function getTypeAllowableValues()
    {
        return [
            self::TYPE_ACCEPTED_ALLY,
            self::TYPE_ACCEPTED_SURRENDER,
            self::TYPE_ALL_ANCHORING_MSG,
            self::TYPE_ALL_MAINTENANCE_BILL_MSG,
            self::TYPE_ALL_STRUC_INVULNERABLE_MSG,
            self::TYPE_ALL_STRUCT_VULNERABLE_MSG,
            self::TYPE_ALL_WAR_CORP_JOINED_ALLIANCE_MSG,
            self::TYPE_ALL_WAR_DECLARED_MSG,
            self::TYPE_ALL_WAR_INVALIDATED_MSG,
            self::TYPE_ALL_WAR_RETRACTED_MSG,
            self::TYPE_ALL_WAR_SURRENDER_MSG,
            self::TYPE_ALLIANCE_CAPITAL_CHANGED,
            self::TYPE_ALLY_CONTRACT_CANCELLED,
            self::TYPE_ALLY_JOINED_WAR_AGGRESSOR_MSG,
            self::TYPE_ALLY_JOINED_WAR_ALLY_MSG,
            self::TYPE_ALLY_JOINED_WAR_DEFENDER_MSG,
            self::TYPE_BATTLE_PUNISH_FRIENDLY_FIRE,
            self::TYPE_BILL_OUT_OF_MONEY_MSG,
            self::TYPE_BILL_PAID_CORP_ALL_MSG,
            self::TYPE_BOUNTY_CLAIM_MSG,
            self::TYPE_BOUNTY_ESS_SHARED,
            self::TYPE_BOUNTY_ESS_TAKEN,
            self::TYPE_BOUNTY_PLACED_ALLIANCE,
            self::TYPE_BOUNTY_PLACED_CHAR,
            self::TYPE_BOUNTY_PLACED_CORP,
            self::TYPE_BOUNTY_YOUR_BOUNTY_CLAIMED,
            self::TYPE_BUDDY_CONNECT_CONTACT_ADD,
            self::TYPE_CHAR_APP_ACCEPT_MSG,
            self::TYPE_CHAR_APP_REJECT_MSG,
            self::TYPE_CHAR_APP_WITHDRAW_MSG,
            self::TYPE_CHAR_LEFT_CORP_MSG,
            self::TYPE_CHAR_MEDAL_MSG,
            self::TYPE_CHAR_TERMINATION_MSG,
            self::TYPE_CLONE_ACTIVATION_MSG,
            self::TYPE_CLONE_ACTIVATION_MSG2,
            self::TYPE_CLONE_MOVED_MSG,
            self::TYPE_CLONE_REVOKED_MSG1,
            self::TYPE_CLONE_REVOKED_MSG2,
            self::TYPE_CONTACT_ADD,
            self::TYPE_CONTACT_EDIT,
            self::TYPE_CONTAINER_PASSWORD_MSG,
            self::TYPE_CORP_ALL_BILL_MSG,
            self::TYPE_CORP_APP_ACCEPT_MSG,
            self::TYPE_CORP_APP_INVITED_MSG,
            self::TYPE_CORP_APP_NEW_MSG,
            self::TYPE_CORP_APP_REJECT_CUSTOM_MSG,
            self::TYPE_CORP_APP_REJECT_MSG,
            self::TYPE_CORP_DIVIDEND_MSG,
            self::TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_COMPLETED,
            self::TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_STARTED,
            self::TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_COMPLETED,
            self::TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_STARTED,
            self::TYPE_CORP_KICKED,
            self::TYPE_CORP_LIQUIDATION_MSG,
            self::TYPE_CORP_NEW_CEO_MSG,
            self::TYPE_CORP_NEWS_MSG,
            self::TYPE_CORP_OFFICE_EXPIRATION_MSG,
            self::TYPE_CORP_STRUCT_LOST_MSG,
            self::TYPE_CORP_TAX_CHANGE_MSG,
            self::TYPE_CORP_VOTE_CEO_REVOKED_MSG,
            self::TYPE_CORP_VOTE_MSG,
            self::TYPE_CORP_WAR_DECLARED_MSG,
            self::TYPE_CORP_WAR_FIGHTING_LEGAL_MSG,
            self::TYPE_CORP_WAR_INVALIDATED_MSG,
            self::TYPE_CORP_WAR_RETRACTED_MSG,
            self::TYPE_CORP_WAR_SURRENDER_MSG,
            self::TYPE_CUSTOMS_MSG,
            self::TYPE_DECLARE_WAR,
            self::TYPE_DISTRICT_ATTACKED,
            self::TYPE_DUST_APP_ACCEPTED_MSG,
            self::TYPE_ENTOSIS_CAPTURE_STARTED,
            self::TYPE_FW_ALLIANCE_KICK_MSG,
            self::TYPE_FW_ALLIANCE_WARNING_MSG,
            self::TYPE_FW_CHAR_KICK_MSG,
            self::TYPE_FW_CHAR_RANK_GAIN_MSG,
            self::TYPE_FW_CHAR_RANK_LOSS_MSG,
            self::TYPE_FW_CHAR_WARNING_MSG,
            self::TYPE_FW_CORP_JOIN_MSG,
            self::TYPE_FW_CORP_KICK_MSG,
            self::TYPE_FW_CORP_LEAVE_MSG,
            self::TYPE_FW_CORP_WARNING_MSG,
            self::TYPE_FAC_WAR_CORP_JOIN_REQUEST_MSG,
            self::TYPE_FAC_WAR_CORP_JOIN_WITHDRAW_MSG,
            self::TYPE_FAC_WAR_CORP_LEAVE_REQUEST_MSG,
            self::TYPE_FAC_WAR_CORP_LEAVE_WITHDRAW_MSG,
            self::TYPE_FAC_WAR_LP_DISQUALIFIED_EVENT,
            self::TYPE_FAC_WAR_LP_DISQUALIFIED_KILL,
            self::TYPE_FAC_WAR_LP_PAYOUT_EVENT,
            self::TYPE_FAC_WAR_LP_PAYOUT_KILL,
            self::TYPE_GAME_TIME_ADDED,
            self::TYPE_GAME_TIME_RECEIVED,
            self::TYPE_GAME_TIME_SENT,
            self::TYPE_GIFT_RECEIVED,
            self::TYPE_I_HUB_DESTROYED_BY_BILL_FAILURE,
            self::TYPE_INCURSION_COMPLETED_MSG,
            self::TYPE_INDUSTRY_TEAM_AUCTION_LOST,
            self::TYPE_INDUSTRY_TEAM_AUCTION_WON,
            self::TYPE_INFRASTRUCTURE_HUB_BILL_ABOUT_TO_EXPIRE,
            self::TYPE_INSURANCE_EXPIRATION_MSG,
            self::TYPE_INSURANCE_FIRST_SHIP_MSG,
            self::TYPE_INSURANCE_INVALIDATED_MSG,
            self::TYPE_INSURANCE_ISSUED_MSG,
            self::TYPE_INSURANCE_PAYOUT_MSG,
            self::TYPE_JUMP_CLONE_DELETED_MSG1,
            self::TYPE_JUMP_CLONE_DELETED_MSG2,
            self::TYPE_KILL_REPORT_FINAL_BLOW,
            self::TYPE_KILL_REPORT_VICTIM,
            self::TYPE_KILL_RIGHT_AVAILABLE,
            self::TYPE_KILL_RIGHT_AVAILABLE_OPEN,
            self::TYPE_KILL_RIGHT_EARNED,
            self::TYPE_KILL_RIGHT_UNAVAILABLE,
            self::TYPE_KILL_RIGHT_UNAVAILABLE_OPEN,
            self::TYPE_KILL_RIGHT_USED,
            self::TYPE_LOCATE_CHAR_MSG,
            self::TYPE_MADE_WAR_MUTUAL,
            self::TYPE_MERC_OFFERED_NEGOTIATION_MSG,
            self::TYPE_MISSION_OFFER_EXPIRATION_MSG,
            self::TYPE_MISSION_TIMEOUT_MSG,
            self::TYPE_MOONMINING_AUTOMATIC_FRACTURE,
            self::TYPE_MOONMINING_EXTRACTION_CANCELLED,
            self::TYPE_MOONMINING_EXTRACTION_FINISHED,
            self::TYPE_MOONMINING_LASER_FIRED,
            self::TYPE_NPC_STANDINGS_GAINED,
            self::TYPE_NPC_STANDINGS_LOST,
            self::TYPE_OFFERED_SURRENDER,
            self::TYPE_OFFERED_TO_ALLY,
            self::TYPE_OLD_LSC_MESSAGES,
            self::TYPE_OPERATION_FINISHED,
            self::TYPE_ORBITAL_ATTACKED,
            self::TYPE_ORBITAL_REINFORCED,
            self::TYPE_OWNERSHIP_TRANSFERRED,
            self::TYPE_REIMBURSEMENT_MSG,
            self::TYPE_RESEARCH_MISSION_AVAILABLE_MSG,
            self::TYPE_RETRACTS_WAR,
            self::TYPE_SEASONAL_CHALLENGE_COMPLETED,
            self::TYPE_SOV_ALL_CLAIM_AQUIRED_MSG,
            self::TYPE_SOV_ALL_CLAIM_LOST_MSG,
            self::TYPE_SOV_COMMAND_NODE_EVENT_STARTED,
            self::TYPE_SOV_CORP_BILL_LATE_MSG,
            self::TYPE_SOV_CORP_CLAIM_FAIL_MSG,
            self::TYPE_SOV_DISRUPTOR_MSG,
            self::TYPE_SOV_STATION_ENTERED_FREEPORT,
            self::TYPE_SOV_STRUCTURE_DESTROYED,
            self::TYPE_SOV_STRUCTURE_REINFORCED,
            self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_CANCEL,
            self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_FINISHED,
            self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_REQUESTED,
            self::TYPE_SOVEREIGNTY_IH_DAMAGE_MSG,
            self::TYPE_SOVEREIGNTY_SBU_DAMAGE_MSG,
            self::TYPE_SOVEREIGNTY_TCU_DAMAGE_MSG,
            self::TYPE_STATION_AGGRESSION_MSG1,
            self::TYPE_STATION_AGGRESSION_MSG2,
            self::TYPE_STATION_CONQUER_MSG,
            self::TYPE_STATION_SERVICE_DISABLED,
            self::TYPE_STATION_SERVICE_ENABLED,
            self::TYPE_STATION_STATE_CHANGE_MSG,
            self::TYPE_STORY_LINE_MISSION_AVAILABLE_MSG,
            self::TYPE_STRUCTURE_ANCHORING,
            self::TYPE_STRUCTURE_COURIER_CONTRACT_CHANGED,
            self::TYPE_STRUCTURE_DESTROYED,
            self::TYPE_STRUCTURE_FUEL_ALERT,
            self::TYPE_STRUCTURE_ITEMS_DELIVERED,
            self::TYPE_STRUCTURE_LOST_ARMOR,
            self::TYPE_STRUCTURE_LOST_SHIELDS,
            self::TYPE_STRUCTURE_ONLINE,
            self::TYPE_STRUCTURE_SERVICES_OFFLINE,
            self::TYPE_STRUCTURE_UNANCHORING,
            self::TYPE_STRUCTURE_UNDER_ATTACK,
            self::TYPE_TOWER_ALERT_MSG,
            self::TYPE_TOWER_RESOURCE_ALERT_MSG,
            self::TYPE_TRANSACTION_REVERSAL_MSG,
            self::TYPE_TUTORIAL_MSG,
            self::TYPE_WAR_ALLY_OFFER_DECLINED_MSG,
            self::TYPE_WAR_SURRENDER_DECLINED_MSG,
            self::TYPE_WAR_SURRENDER_OFFER_MSG,
            self::TYPE_NOTIFICATION_TYPE_MOONMINING_EXTRACTION_STARTED,
        ];
    }
1056844
public function getEnum()
    {
        $classNames = ClassInfo::subclassesFor($this->getBaseClass());
        $dataobject = strtolower(DataObject::class);
        unset($classNames[$dataobject]);
        return array_values($classNames);
    }
80824
protected function getStatusValues()
    {
        $values = array();
        foreach ($this->dbObject('Status')->enumValues() as $value) {
            $values[$value] = _t('SilverStripe\Omnipay\Model\Payment.STATUS_' . strtoupper($value), $value);
        }
        return $values;
    }
1083876
public function values():array
    {
        $values = [];
        foreach ($this->info->getNames() as $name) {

            if ($this->hasExplicitValue($name)) {

                if ($this->info->isVariadic($name)) {
                    foreach ($this->getExplicitValue($name) as $append) {
                        $values[] = $append;
                    }
                } else {
                    $values[] = $this->getExplicitValue($name);
                }

            } else if ($this->info->isRequired($name)) {

                if ($this->info->hasDefaultValue($name)) {
                    $values[] = $this->info->getDefaultValue($name);
                } else if ($this->info->allowsNull($name)) {
                    $values[] = null;
                } else {
                    throw ArgumentListException::missingValues($this->getMissing());
                }

            }

        }
        return $values;
    }
1120447
public static function values(): array
    {
        self::checkForChoiceEnumTraitMisuses();

        $values = array_keys(static::choices());

        if (is_a(static::class, FlaggedEnum::class, true)) {
            $values = array_values(array_filter($values, function ($v): bool {
                return 0 === ($v & $v - 1);
            }));
        }

        return $values;
    }
389585
public function getTypeAllowableValues()
  {
    return [
      self::TYPE_HOME,
      self::TYPE_WORK,
      self::TYPE_MOBILE,
      self::TYPE_OTHER,
      self::TYPE_NULL,
    ];
  }
669589
public function getHighGradeAllowableValues()
    {
        return [
            self::HIGH_GRADE__1,
            self::HIGH_GRADE__2,
            self::HIGH_GRADE__3,
            self::HIGH_GRADE__4,
            self::HIGH_GRADE__5,
            self::HIGH_GRADE__6,
            self::HIGH_GRADE__7,
            self::HIGH_GRADE__8,
            self::HIGH_GRADE__9,
            self::HIGH_GRADE__10,
            self::HIGH_GRADE__11,
            self::HIGH_GRADE__12,
            self::HIGH_GRADE_PRE_KINDERGARTEN,
            self::HIGH_GRADE_KINDERGARTEN,
            self::HIGH_GRADE_POST_GRADUATE,
            self::HIGH_GRADE_OTHER,
        ];
    }
982579
public function getRoleTypeAllowableValues()
    {
        return [
            self::ROLE_TYPE_GRANTABLE_ROLES,
            self::ROLE_TYPE_GRANTABLE_ROLES_AT_BASE,
            self::ROLE_TYPE_GRANTABLE_ROLES_AT_HQ,
            self::ROLE_TYPE_GRANTABLE_ROLES_AT_OTHER,
            self::ROLE_TYPE_ROLES,
            self::ROLE_TYPE_ROLES_AT_BASE,
            self::ROLE_TYPE_ROLES_AT_HQ,
            self::ROLE_TYPE_ROLES_AT_OTHER,
        ];
    }