PHP Class PhpSpec\Loader\Node\SpecificationNode

Inheritance: implements Countable
Show file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( string $title, ReflectionClass $class, PhpSpec\Locator\Resource $resource )
addExample ( ExampleNode $example )
count ( ) : integer
getClassReflection ( ) : ReflectionClass
getExamples ( ) : ExampleNode[]
getResource ( ) : PhpSpec\Locator\Resource
getSuite ( ) : PhpSpec\Loader\Suite | null
getTitle ( ) : string
setSuite ( PhpSpec\Loader\Suite $suite )

Method Details

__construct() public method

public __construct ( string $title, ReflectionClass $class, PhpSpec\Locator\Resource $resource )
$title string
$class ReflectionClass
$resource PhpSpec\Locator\Resource

addExample() public method

public addExample ( ExampleNode $example )
$example ExampleNode

count() public method

public count ( ) : integer
return integer

getClassReflection() public method

public getClassReflection ( ) : ReflectionClass
return ReflectionClass

getExamples() public method

public getExamples ( ) : ExampleNode[]
return ExampleNode[]

getResource() public method

public getResource ( ) : PhpSpec\Locator\Resource
return PhpSpec\Locator\Resource

getSuite() public method

public getSuite ( ) : PhpSpec\Loader\Suite | null
return PhpSpec\Loader\Suite | null

getTitle() public method

public getTitle ( ) : string
return string

setSuite() public method

public setSuite ( PhpSpec\Loader\Suite $suite )
$suite PhpSpec\Loader\Suite