Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:dto:commentapidto

This is an old revision of the document!


CommentApiDto

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.

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) | 56 |

transform()

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

transformCollection()

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.

scriptlog/lib/dto/commentapidto.1790413761.txt.gz · Last modified: by admin