Behat


Behat\Behat\Annotation\Annotation
Behat/Behat/Annotation/Annotation.php at line 21

Class Annotation

Annotation
All Known Subclasses:
Behat\Behat\Definition\Annotation\Definition Behat\Behat\Hook\Annotation\Hook Behat\Behat\Definition\Annotation\Transformation

public abstract class Annotation

Behat annotation class.

Author:
Konstantin Kudryashov

Constructor Summary
void

__construct(callback callback)

Constructs annotation.

Method Summary
void

setDescription(string description)

Sets annotation description.

string

getDescription()

Returns description.

string

getPath()

Returns path string for callback.

Boolean

isClosure()

Checks whether callback is closure.

callback

getCallback()

Returns callback.

callback

getCallbackForContext(ContextInterface context)

Returns callback, mapped to specific context (or it's subcontext) instance.

\ReflectionFunction

getCallbackReflection()

Returns callback reflection.

Constructor Detail

Behat/Behat/Annotation/Annotation.php at line 35

__construct

public void __construct(callback callback)

Constructs annotation.

Throws:
\InvalidArgumentException

Method Detail

Behat/Behat/Annotation/Annotation.php at line 60

setDescription

public void setDescription(string description)

Sets annotation description.


Behat/Behat/Annotation/Annotation.php at line 70

getDescription

public string getDescription()

Returns description.


Behat/Behat/Annotation/Annotation.php at line 80

getPath

public string getPath()

Returns path string for callback.


Behat/Behat/Annotation/Annotation.php at line 90

isClosure

public Boolean isClosure()

Checks whether callback is closure.


Behat/Behat/Annotation/Annotation.php at line 100

getCallback

public callback getCallback()

Returns callback.


Behat/Behat/Annotation/Annotation.php at line 114

getCallbackForContext

public callback getCallbackForContext(ContextInterface context)

Returns callback, mapped to specific context (or it's subcontext) instance.

Throws:
\RuntimeException

Behat/Behat/Annotation/Annotation.php at line 153

getCallbackReflection

public \ReflectionFunction getCallbackReflection()

Returns callback reflection.


Behat