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

  • Base
  • ZendPHP
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Base

Declares the base for a parse action that extract and generates definition files.

Peg\Custom\CommandLine\Action
Extended by Peg\Custom\Command\Action\Generate\Base

Direct known subclasses

Peg\Custom\Command\Action\Generate\ZendPHP
Abstract
Namespace: Peg\Custom\Command\Action\Generate
Located at src/Command/Action/Generate/Base.php
Methods summary
public
# __construct( string $engine )

Your derived class should override this and set the engine name of your generator so it is called apropiately when this variable is set.

Your derived class should override this and set the engine name of your generator so it is called apropiately when this variable is set.

Parameters

$engine
string
$engine Name of the engine.
public
# OnCall( Peg\Custom\CommandLine\Command $command )

You shouldn't override this method, instead write a Start() implementation.

You shouldn't override this method, instead write a Start() implementation.

Parameters

$command
Peg\Custom\CommandLine\Command
$command
abstract public
# Start( )

Needs to be implemented by classes extending this one in order to begin the generator process when the engine matches that of the action been called.

Needs to be implemented by classes extending this one in order to begin the generator process when the engine matches that of the action been called.

Properties summary
protected Peg\Custom\CommandLine\Command $command
#

Reference to command that called this action.

Reference to command that called this action.

protected string $engine
#

Name of the engine for which the source code is going to be generated.

Name of the engine for which the source code is going to be generated.

protected boolean $verbose
#

Flag that indicates if the generator should output messages of its current status.

Flag that indicates if the generator should output messages of its current status.

PEG Api API documentation generated by ApiGen 2.8.0