scriptlog:lib:dto:topicapidto
Table of Contents
TopicApiDto
Layer: DTO · Source: lib/dto/api/TopicApiDto.php:20 (lines 20–46)
class TopicApiDto
TopicApiDto
Data Transfer Object for API topic/category responses. Transforms raw topic data from the Service/DAO layer into the standardized API response format.
Docblock Metadata
| Tag | Value |
|---|---|
@category | DTO |
@author | Blogware Team |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (0)
None declared.
Methods (2)
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public static | transform() | (undocumented) | 22 |
| public static | transformCollection() | (undocumented) | 40 |
transform()
public static function transform(array $topic, string $appUrl): array
lines 22–38 (17)
| Parameter | Type | Default | Description |
|---|---|---|---|
$topic | array | required | none |
$appUrl | string | required | none |
Returns: array
transformCollection()
public static function transformCollection(array $topics, string $appUrl): array
lines 40–45 (6)
| Parameter | Type | Default | Description |
|---|---|---|---|
$topics | array | required | none |
$appUrl | string | required | none |
Returns: array
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
scriptlog/lib/dto/topicapidto.txt · Last modified: by admin
