Layer: DTO · Source: lib/dto/api/CommentApiDto.php:20 (lines 20–62)
class CommentApiDto
CommentApiDto
Data Transfer Object for API comment responses. Transforms raw comment data from the Service/DAO layer into the standardized API response format.
| Tag | Value |
|---|---|
@category | DTO |
@author | Blogware Team |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
No parent, interface or trait. This is a root type.
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public static | transform() | (undocumented) | 22 |
| public static | transformCollection() | (undocumented) | 56 |
public static function transform(array $comment, string $appUrl): array
lines 22–54 (33)
| Parameter | Type | Default | Description |
|---|---|---|---|
$comment | array | required | none |
$appUrl | string | required | none |
Returns: array
public static function transformCollection(array $comments, string $appUrl): array
lines 56–61 (6)
| Parameter | Type | Default | Description |
|---|---|---|---|
$comments | array | required | none |
$appUrl | string | required | none |
Returns: array
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.