StepNode
in package
implements
NodeInterface
Represents Gherkin Step.
Tags
Table of Contents
Interfaces
- NodeInterface
- Gherkin node interface.
Properties
- $arguments : array<string|int, ArgumentInterface>
- $keyword : string
- $keywordType : string
- $line : int
- $text : string
Methods
- __construct() : mixed
- Initializes step.
- getArguments() : array<string|int, ArgumentInterface>
- Returns step arguments.
- getKeyword() : string
- Returns step keyword in provided language (Given, When, Then, etc.).
- getKeywordType() : string
- Returns step type keyword (Given, When, Then, etc.).
- getLine() : int
- Returns step declaration line number.
- getNodeType() : string
- Returns node type string
- getText() : string
- Returns step text.
- getType() : string
- Returns step keyword in provided language (Given, When, Then, etc.).
- hasArguments() : bool
- Checks if step has arguments.
Properties
$arguments
private
array<string|int, ArgumentInterface>
$arguments
= array()
$keyword
private
string
$keyword
$keywordType
private
string
$keywordType
$line
private
int
$line
$text
private
string
$text
Methods
__construct()
Initializes step.
public
__construct(string $keyword, string $text, array<string|int, ArgumentInterface> $arguments, int $line[, string $keywordType = null ]) : mixed
Parameters
- $keyword : string
- $text : string
- $arguments : array<string|int, ArgumentInterface>
- $line : int
- $keywordType : string = null
getArguments()
Returns step arguments.
public
getArguments() : array<string|int, ArgumentInterface>
Return values
array<string|int, ArgumentInterface>getKeyword()
Returns step keyword in provided language (Given, When, Then, etc.).
public
getKeyword() : string
Return values
stringgetKeywordType()
Returns step type keyword (Given, When, Then, etc.).
public
getKeywordType() : string
Return values
stringgetLine()
Returns step declaration line number.
public
getLine() : int
Return values
intgetNodeType()
Returns node type string
public
getNodeType() : string
Return values
stringgetText()
Returns step text.
public
getText() : string
Return values
stringgetType()
Returns step keyword in provided language (Given, When, Then, etc.).
public
getType() : string
Tags
Return values
stringhasArguments()
Checks if step has arguments.
public
hasArguments() : bool