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 NamespaceElement

Represents a namespace.

Namespace: Peg\Lib\Definitions\Element
Located at src/Definitions/Element/NamespaceElement.php
Methods summary
public
# __construct( string $name )

Initializes a namespace element.

Initializes a namespace element.

Parameters

$name
string
$name
public boolean
# HasConstants( )

Check if the namespace has constants.

Check if the namespace has constants.

Returns

boolean
public boolean
# HasEnumerations( )

Check if the namespace has enumerations.

Check if the namespace has enumerations.

Returns

boolean
public boolean
# HasTypeDefs( )

Check if the namespace has type definitions.

Check if the namespace has type definitions.

Returns

boolean
public boolean
# HasGlobalVariables( )

Check if the namespace has global variables.

Check if the namespace has global variables.

Returns

boolean
public boolean
# HasFunctions( )

Check if the namespace has functions.

Check if the namespace has functions.

Returns

boolean
public boolean
# HasClasses( )

Check if the namespace has classes.

Check if the namespace has classes.

Returns

boolean
Properties summary
public string $name
#

Holds the name of the namespace.

Holds the name of the namespace.

public boolean $is_global
#

Flag that indicates if this is the global scope namespace ().

Flag that indicates if this is the global scope namespace ().

public Peg\Lib\Definitions\Element\Constant[] $constants
#

Array of constants declared on the namespace.

Array of constants declared on the namespace.

public Peg\Lib\Definitions\Element\Enumeration[] $enumerations
#

Array of enumerations declared on the namespace.

Array of enumerations declared on the namespace.

public Peg\Lib\Definitions\Element\TypeDef[] $type_definitions
#

Array of type definitions declared on the file.

Array of type definitions declared on the file.

public Peg\Lib\Definitions\Element\GlobalVariable[] $global_variables
#

Array of variables declared on the namespace.

Array of variables declared on the namespace.

public Peg\Lib\Definitions\Element\FunctionElement[] $functions
#

Array of functions declared on the namespace.

Array of functions declared on the namespace.

public Peg\Lib\Definitions\Element\ClassElement[] $classes
#

Array of classes declared on the namespace.

Array of classes declared on the namespace.

PEG Api API documentation generated by ApiGen 2.8.0