for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Modules\Comments\Api\Query\Response;
use Symfony\Component\Uid\Ulid;
class FindCommentsByPostIdQueryResponse
{
/**
* @param Ulid $id
* @param string $author
* @param string $body
* @param Ulid|null $parentId
* @param \DateTime $createdAt
*/
public function __construct(
private Ulid $id,
private string $author,
private string $body,
private ?Ulid $parentId,
private \DateTime $createdAt
)
}
* @return Ulid
public function getId(): Ulid
return $this->id;
* @return string
public function getAuthor(): string
return $this->author;
public function getBody(): string
return $this->body;
* @return Ulid|null
public function getParentId(): ?Ulid
return $this->parentId;
* @return \DateTime
public function getCreatedAt(): \DateTime
return $this->createdAt;