Represents a annotation in the php source code comment.
This class is used as standard implementation for representing annotations. It is only used if no specialized annotation class could be found deriving from this class.
The comment line is tokenized by at spaces and if no further structure is recognized, tokens are available at getParams.
Source for this file: /Reflection/src/annotations/annotation.php
Version: | //autogen// |
Child Class | Description |
---|---|
ezcReflectionAnnotationReturn | Represents a return annotation in the php source code comment. |
ezcReflectionAnnotationParam | Represents a param annotation in the php source code comment. |
ezcReflectionAnnotationVar | Represents a var annotation in the php source code comment. |
protected string |
$annotationName
|
protected string |
$desc
|
protected string[] |
$params
|
public ezcReflectionAnnotation |
__construct(
$line
)
|
public void |
addDescriptionLine(
$line
)
|
public string |
getDescription(
)
|
public string |
getName(
)
|
public string[] |
getParams(
)
|
Name | Type | Description |
---|---|---|
$line |
string[] | Array of words |
Method | Description |
---|---|
ezcReflectionAnnotationReturn::__construct() |
|
ezcReflectionAnnotationParam::__construct() |
|
ezcReflectionAnnotationVar::__construct() |
Name | Type | Description |
---|---|---|
$line |
string |