Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • ClassElement
  • ClassVariable
  • Constant
  • Enumeration
  • FunctionElement
  • GlobalVariable
  • Header
  • NamespaceElement
  • Overload
  • Parameter
  • ReturnType
  • TypeComponents
  • TypeDef
  • VariableType
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Enumeration

Represents an enumeration declared independently on a header file or as part of a class.

Namespace: Peg\Lib\Definitions\Element
Located at src/Definitions/Element/Enumeration.php
Methods summary
public
# __construct( string $name, array $options, string $description = "" )

Initializes the enumeration element.

Initializes the enumeration element.

Parameters

$name
string
$name
$options
array
$options
$description
string
$description
Properties summary
public string $name
#

Holds the name of the enumeration.

Holds the name of the enumeration.

public array $options
#

List of options.

List of options.

public string $description
#

Description of the element.

Description of the element.

public Peg\Lib\Definitions\Element\ClassElement $parent_class
#

Reference to the class containing this element if applicable.

Reference to the class containing this element if applicable.

public Peg\Lib\Definitions\Element\Header $header
#

Reference to the header containing this element.

Reference to the header containing this element.

public Peg\Lib\Definitions\Element\NamespaceElement $namespace
#

Reference to the namespace containing this element.

Reference to the namespace containing this element.

PEG Api API documentation generated by ApiGen 2.8.0