TYPO3  7.6
Public Member Functions | List of all members
ParserInterface Interface Reference
Inheritance diagram for ParserInterface:
Parser

Public Member Functions

 __construct (GranularityInterface $granularity)
 
 getGranularity ()
 
 setGranularity (GranularityInterface $granularity)
 
 getOpcodes ()
 
 setOpcodes (OpcodesInterface $opcodes)
 
 parse ($from_text, $to_text)
 

Detailed Description

Definition at line 23 of file ParserInterface.php.

Constructor & Destructor Documentation

__construct ( GranularityInterface  $granularity)

Creates an instance.

Parameters
cogpowered\FineDiff\Granularity\GranularityInterface

Implemented in Parser.

Member Function Documentation

getGranularity ( )

Granularity the parser is working with.

Default is cogpowered.

See Also
cogpowered
cogpowered
cogpowered
cogpowered
Returns
cogpowered

Implemented in Parser.

getOpcodes ( )

Get the opcodes object that is used to store all the opcodes.

Returns
cogpowered

Implemented in Parser.

parse (   $from_text,
  $to_text 
)

Generates the opcodes needed to transform one string to another.

Parameters
string$from_text
string$to_text
Exceptions
cogpowered\FineDiff\Exceptions\GranularityCountException
Returns
cogpowered

Implemented in Parser.

setGranularity ( GranularityInterface  $granularity)

Set the granularity that the parser is working with.

See Also
cogpowered
cogpowered
cogpowered
cogpowered
Parameters
cogpowered\FineDiff\Granularity\GranularityInterface
Returns
void

Implemented in Parser.

setOpcodes ( OpcodesInterface  $opcodes)

Set the opcodes object used to store all the opcodes for this parse.

Parameters
cogpowered\FineDiff\Parser\OpcodesInterface$opcodes,.
Returns
void

Implemented in Parser.