scriptlog:lib:dto:postapidto
This is an old revision of the document!
Table of Contents
PostApiDto
Layer: DTO · Source: lib/dto/api/PostApiDto.php:20 (lines 20–81)
class PostApiDto
PostApiDto
Data Transfer Object for API post responses. Transforms raw post 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) | 75 |
transform()
public static function transform(array $post, string $appUrl): array
lines 22–73 (52)
^ Parameter ^ Type ^ Default ^ Description ^ | ''$post'' | ''array'' | //required// | //none// | | ''$appUrl'' | ''string'' | //required// | //none// |
Returns: array
transformCollection()
public static function transformCollection(array $posts, string $appUrl): array
lines 75–80 (6)
^ Parameter ^ Type ^ Default ^ Description ^ | ''$posts'' | ''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/postapidto.1790413761.txt.gz · Last modified: by admin
