TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Opcodes Class Reference
Inheritance diagram for Opcodes:
OpcodesInterface

Public Member Functions

 getOpcodes ()
 
 setOpcodes (array $opcodes)
 
 generate ()
 
 __toString ()
 

Protected Attributes

 $opcodes = array()
 

Detailed Description

Holds all the opcodes returned by the parser.

Definition at line 26 of file Opcodes.php.

Member Function Documentation

__toString ( )

When object is cast to a string returns opcodes as string.

See Also
Opcodes::generate
Returns
string

Implements OpcodesInterface.

Definition at line 70 of file Opcodes.php.

References Opcodes\generate().

generate ( )

Return the opcodes in a format that can then be rendered.

Returns
string

Implements OpcodesInterface.

Definition at line 62 of file Opcodes.php.

Referenced by Opcodes\__toString().

getOpcodes ( )

Get the opcodes.

Returns
array

Implements OpcodesInterface.

Definition at line 36 of file Opcodes.php.

References Opcodes\$opcodes.

setOpcodes ( array  $opcodes)

Set the opcodes for this parse.

Parameters
array$opcodesElements must be an instance of cogpowered.
Exceptions
cogpowered\FineDiff\Exceptions\OperationException
Returns
void

Implements OpcodesInterface.

Definition at line 44 of file Opcodes.php.

Member Data Documentation

$opcodes = array()
protected

Definition at line 31 of file Opcodes.php.

Referenced by Opcodes\getOpcodes().