29 lines
445 B
PHP
29 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Message;
|
|
|
|
class CommentMessage
|
|
{
|
|
public function __construct(
|
|
private int $id,
|
|
private string $reviewUrl,
|
|
private array $context = [],
|
|
) {
|
|
}
|
|
|
|
public function getReviewUrl(): string
|
|
{
|
|
return $this->reviewUrl;
|
|
}
|
|
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getContext(): array
|
|
{
|
|
return $this->context;
|
|
}
|
|
} |