Oroboros Core
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • None
  • oroboros
    • core
      • abstracts
        • adapters
        • bootstrap
        • controllers
        • libraries
          • auth
          • bootstrap
          • cache
          • codex
          • config
          • container
          • data
          • database
          • dns
          • entity
          • enum
          • error
          • event
          • extension
          • file
          • flags
          • hooks
          • job
          • logger
          • manager
          • message
          • prototype
          • request
          • response
          • routine
          • shell
          • startup
          • stream
          • template
          • uri
          • utility
          • validation
            • workers
          • worker
        • models
        • patterns
          • behavioral
          • creational
        • utilities
          • exception
            • cache
            • container
          • http
        • views
      • interfaces
        • adapters
          • interpreters
          • sdk
        • api
          • adapters
          • bootstrap
          • controllers
          • psr
        • contract
          • adapters
          • bootstrap
          • codex
          • components
          • controllers
          • data
          • entities
          • errors
          • events
          • extensions
          • jobs
          • libraries
            • auth
            • cache
            • config
            • container
            • enum
            • file
            • flags
            • hooks
            • module
            • promise
            • record
            • request
            • response
            • server
            • shutdown
            • site
            • stream
            • template
            • theme
            • uri
          • models
          • patterns
            • behavioral
            • concurrency
            • creational
            • structural
          • routes
          • routines
            • bootload
            • declarative
            • procedural
            • subsystem
          • services
            • consumer
              • cgi
              • rest
                • local
                • remote
                  • authenticated
                  • unauthenticated
            • provider
              • cgi
              • rest
                • local
                • remote
                  • authenticated
                  • unauthenticated
          • utilities
            • datetime
            • exception
              • cache
              • container
            • filebase
            • http
            • math
            • parser
            • regex
            • session
          • views
        • enumerated
          • environment
          • flags
          • http
          • views
        • libraries
          • manager
          • worker
      • libraries
        • api
        • codex
        • container
        • enum
          • http
        • file
        • hooks
        • logger
        • math
        • psr4
        • request
        • response
        • stream
        • uri
      • patterns
        • creational
      • traits
        • adapters
        • bootstrap
        • codex
        • components
        • controllers
        • data
        • entities
        • events
        • extensions
        • jobs
        • libraries
          • container
          • file
          • request
          • response
          • stream
          • uri
        • models
        • modules
        • patterns
          • behavioral
          • concurrency
          • creational
          • structural
        • routes
        • services
        • utilities
          • core
            • api
            • config
            • contract
              • contract
            • enum
            • environment
            • routines
          • datetime
          • error
          • exception
          • filebase
          • hooks
          • html
          • http
          • logic
          • math
          • parsers
          • regex
          • session
        • views
      • utilities
        • exception
          • cache
          • container
        • http
      • views
    • tests
      • patterns
        • creational
      • psr
        • psr7
      • utilities
        • exception
  • PasswordCompat
    • binary
  • PHP

Classes

  • AbstractEnum

Class AbstractEnum

AbstractEnum Provides an abstraction that emulates splEnum, and provides it with checkval methods. This should be extended by concrete implementations that provide their own enumerable set. Enumerable sets can then be easily created from interface constants by implementing them on an extension of this class, and can insure exact constant names or validate ambiguous parameters.

oroboros\core\abstracts\libraries\enum\AbstractEnum implements oroboros\core\interfaces\api\EnumApi

Direct known subclasses

oroboros\core\libraries\api\ClassScopes, oroboros\core\libraries\api\ClassTypes, oroboros\core\libraries\api\ExceptionCodes, oroboros\core\libraries\api\ExceptionMessages, oroboros\core\libraries\api\FlagTypes, oroboros\core\libraries\api\HttpCodes, oroboros\core\libraries\api\Regex, oroboros\core\libraries\enum\http\RequestHeaders, oroboros\core\libraries\enum\http\ResponseHeaders, oroboros\core\libraries\enum\http\StatusCodes

Abstract
Namespace: oroboros\core\abstracts\libraries\enum
Author: Brian Dayhoff mopsyd@me.com
Located at core/abstracts/libraries/enum/AbstractEnum.php

Methods summary

public
# __construct( $value = null )
public
# __toString( )
final public static array
# valid( )

Returns all valid enumeration keys;

Returns all valid enumeration keys;

Returns

array
final public static boolean
# isValid( string $value )

Returns whether a specified key is valid for this enumerable class.

Returns whether a specified key is valid for this enumerable class.

Parameters

$value

Returns

boolean
final public static
# values( )

Returns a list of the constant names for this class, which represent all valid values. The default value will not be provided.

Returns a list of the constant names for this class, which represent all valid values. The default value will not be provided.

public static array
# blacklist( )

Override this function if you need certain class constants not to return as valid enumerable values, and return an array of the ones to exclude. This function is called internally while deciding what values are valid.

Override this function if you need certain class constants not to return as valid enumerable values, and return an array of the ones to exclude. This function is called internally while deciding what values are valid.

Returns

array
private static
# _getBlacklist( )
private static
# _getConstName( $key )

Constants summary

string CLASS_SCOPE
# \oroboros\core\interfaces\api\ClassScopeApi::CLASS_SCOPE_ENUM_ABSTRACT
string API
# '\\oroboros\\core\\interfaces\\api\\EnumApi'

Constants inherited from oroboros\core\interfaces\api\EnumApi

CLASS_TYPE

Properties summary

private $_value
#
private static array $_blacklist
# array( //exclude the system interoperability constants, they will never be enumerated. 'global' => array( '__default', 'OROBOROS_VERSION', 'OROBOROS_VENDOR_NAMESPACE', 'CLASS_SCOPE', 'CLASS_TITLE' ) )
Oroboros Core API documentation generated by ApiGen