PyStringNode
in package
implements
ArgumentInterface
Represents Gherkin PyString argument.
Tags
Table of Contents
Interfaces
- ArgumentInterface
- Gherkin arguments interface.
Properties
Methods
- __construct() : mixed
- Initializes PyString.
- __toString() : string
- Converts PyString into string.
- getLine() : int
- Returns line number at which PyString was started.
- getNodeType() : string
- Returns node type.
- getRaw() : string
- Returns raw string.
- getStrings() : array<string|int, mixed>
- Returns entire PyString lines set.
Properties
$line
private
int
$line
$strings
private
array<string|int, mixed>
$strings
= array()
Methods
__construct()
Initializes PyString.
public
__construct(array<string|int, mixed> $strings, int $line) : mixed
Parameters
- $strings : array<string|int, mixed>
-
String in form of [$stringLine]
- $line : int
-
Line number where string been started
__toString()
Converts PyString into string.
public
__toString() : string
Return values
stringgetLine()
Returns line number at which PyString was started.
public
getLine() : int
Return values
intgetNodeType()
Returns node type.
public
getNodeType() : string
Return values
stringgetRaw()
Returns raw string.
public
getRaw() : string
Return values
stringgetStrings()
Returns entire PyString lines set.
public
getStrings() : array<string|int, mixed>