HumHub Documentation (unofficial)

BackgroundNode
in package
implements ScenarioLikeInterface

Represents Gherkin Background.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

Interfaces

ScenarioLikeInterface
Gherkin scenario-like interface.

Properties

$keyword  : string
$line  : int
$steps  : array<string|int, StepNode>
$title  : string

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

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
string

getLine()

Returns background declaration line number.

public getLine() : int
Return values
int

getNodeType()

Returns node type string

public getNodeType() : string
Return values
string

getTitle()

Returns background title.

public getTitle() : null|string
Return values
null|string

hasSteps()

Checks if background has steps.

public hasSteps() : bool
Return values
bool

        
On this page

Search results