PHP Class Eloquent\Phony\Stub\StubRule

Show file Open project: eloquent/phony

Public Methods

Method Description
__construct ( array $criteria, array $answers ) Construct a new stub rule.
answers ( ) : array Get the answers.
criteria ( ) : array Get the criteria.
next ( ) : Answer Get the next answer.

Method Details

__construct() public method

Construct a new stub rule.
public __construct ( array $criteria, array $answers )
$criteria array
$answers array

answers() public method

Get the answers.
public answers ( ) : array
return array

criteria() public method

Get the criteria.
public criteria ( ) : array
return array

next() public method

Get the next answer.
public next ( ) : Answer
return Eloquent\Phony\Stub\Answer\Answer The answer.