BackgroundNode
in package
implements
ScenarioLikeInterface
Represents Gherkin Background.
Tags
Table of Contents
Interfaces
- ScenarioLikeInterface
- Gherkin scenario-like interface.
Properties
Methods
- __construct() : mixed
- Initializes background.
- getKeyword() : string
- Returns background keyword.
- getLine() : int
- Returns background declaration line number.
- getNodeType() : string
- Returns node type string
- getSteps() : array<string|int, StepNode>
- Returns background steps.
- getTitle() : null|string
- Returns background title.
- hasSteps() : bool
- Checks if background has steps.
Properties
$keyword
private
string
$keyword
$line
private
int
$line
$steps
private
array<string|int, StepNode>
$steps
= array()
$title
private
string
$title
Methods
__construct()
Initializes background.
public
__construct(null|string $title, array<string|int, StepNode> $steps, string $keyword, int $line) : mixed
Parameters
- $title : null|string
- $steps : array<string|int, StepNode>
- $keyword : string
- $line : int
getKeyword()
Returns background keyword.
public
getKeyword() : string
Return values
stringgetLine()
Returns background declaration line number.
public
getLine() : int
Return values
intgetNodeType()
Returns node type string
public
getNodeType() : string
Return values
stringgetSteps()
Returns background steps.
public
getSteps() : array<string|int, StepNode>
Return values
array<string|int, StepNode>getTitle()
Returns background title.
public
getTitle() : null|string
Return values
null|stringhasSteps()
Checks if background has steps.
public
hasSteps() : bool