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 Constant

Represents a constant/#define defined on some include file.

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

Create a constant element.

Create a constant element.

Parameters

$name
string
$name
$value
string
$value
$description
string
$description
Properties summary
public string $name
#

Holds the name of the constant

Holds the name of the constant

public string $value
#

Value of the constant

Value of the constant

public string $description
#

Description of the element.

Description of the element.

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 header containing this element.

Reference to the header containing this element.

PEG Api API documentation generated by ApiGen 2.8.0