HumHub Documentation (unofficial)

StepNode
in package
implements NodeInterface

Represents Gherkin Step.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

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

$keywordType

private string $keywordType

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

getKeyword()

Returns step keyword in provided language (Given, When, Then, etc.).

public getKeyword() : string
Return values
string

getKeywordType()

Returns step type keyword (Given, When, Then, etc.).

public getKeywordType() : string
Return values
string

getLine()

Returns step declaration line number.

public getLine() : int
Return values
int

getNodeType()

Returns node type string

public getNodeType() : string
Return values
string

getText()

Returns step text.

public getText() : string
Return values
string

getType()

Returns step keyword in provided language (Given, When, Then, etc.).

public getType() : string
Tags
deprecated

use getKeyword() instead

Return values
string

hasArguments()

Checks if step has arguments.

public hasArguments() : bool
Return values
bool

        
On this page

Search results