CachedArrayKeywords
extends ArrayKeywords
in package
File initializable keywords holder.
$keywords = new Behat\Gherkin\Keywords\CachedArrayKeywords($file);
Tags
Table of Contents
Properties
- $keywords : mixed
- $keywordString : mixed
- $language : mixed
Methods
- __construct() : mixed
- Initializes holder with file.
- getAndKeywords() : string
- Returns And keywords (splitted by "|").
- getBackgroundKeywords() : string
- Returns Background keywords (splitted by "|").
- getButKeywords() : string
- Returns But keywords (splitted by "|").
- getExamplesKeywords() : string
- Returns Examples keywords (splitted by "|").
- getFeatureKeywords() : string
- Returns Feature keywords (splitted by "|").
- getGivenKeywords() : string
- Returns Given keywords (splitted by "|").
- getOutlineKeywords() : string
- Returns Scenario Outline keywords (splitted by "|").
- getScenarioKeywords() : string
- Returns Scenario keywords (splitted by "|").
- getStepKeywords() : string
- Returns all step keywords (Given, When, Then, And, But).
- getThenKeywords() : string
- Returns Then keywords (splitted by "|").
- getWhenKeywords() : string
- Returns When keywords (splitted by "|").
- setLanguage() : mixed
- Sets keywords holder language.
Properties
$keywords
private
mixed
$keywords
= array()
$keywordString
private
mixed
$keywordString
= array()
$language
private
mixed
$language
Methods
__construct()
Initializes holder with file.
public
__construct(string $file) : mixed
Parameters
- $file : string
-
Cached array path
getAndKeywords()
Returns And keywords (splitted by "|").
public
getAndKeywords() : string
Return values
stringgetBackgroundKeywords()
Returns Background keywords (splitted by "|").
public
getBackgroundKeywords() : string
Return values
stringgetButKeywords()
Returns But keywords (splitted by "|").
public
getButKeywords() : string
Return values
stringgetExamplesKeywords()
Returns Examples keywords (splitted by "|").
public
getExamplesKeywords() : string
Return values
stringgetFeatureKeywords()
Returns Feature keywords (splitted by "|").
public
getFeatureKeywords() : string
Return values
stringgetGivenKeywords()
Returns Given keywords (splitted by "|").
public
getGivenKeywords() : string
Return values
stringgetOutlineKeywords()
Returns Scenario Outline keywords (splitted by "|").
public
getOutlineKeywords() : string
Return values
stringgetScenarioKeywords()
Returns Scenario keywords (splitted by "|").
public
getScenarioKeywords() : string
Return values
stringgetStepKeywords()
Returns all step keywords (Given, When, Then, And, But).
public
getStepKeywords() : string
Return values
stringgetThenKeywords()
Returns Then keywords (splitted by "|").
public
getThenKeywords() : string
Return values
stringgetWhenKeywords()
Returns When keywords (splitted by "|").
public
getWhenKeywords() : string
Return values
stringsetLanguage()
Sets keywords holder language.
public
setLanguage(string $language) : mixed
Parameters
- $language : string
-
Language name