Block
A parsed PHPDoc.
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct(, , )Creates a new Block. |
Instance Methods
| Returns | Signature and Description |
|---|---|
string | Gets the string representation. |
string | Gets the doc block description. |
string | Gets the doc block summary |
ImmVector<Tag> | getTags()Gets the doc block tags. |
Block | Combines this block with a parent block |
Method Details
__construct
public function
__construct(string $summary, string $description, Traversable<Tag> $tags)Creates a new Block.
| Name | Type | Description |
|---|---|---|
$summary | string | The summary |
$description | string | The description |
$tags | Traversable<Tag> | The tags |
__toString
public function
__toString()Gets the string representation.
| Type | Description |
|---|---|
string | The string representation |
getDescription
public function
getDescription()Gets the doc block description.
| Type | Description |
|---|---|
string | The description |
getSummary
public function
getSummary()Gets the doc block summary
| Type | Description |
|---|---|
string | The summary |
getTags
public function
getTags()Gets the doc block tags.
| Type | Description |
|---|---|
ImmVector<Tag> | The tags |
inherit
public function
inherit(?Block $block)