1 | <?php |
||
20 | class CommentEvent extends Event |
||
21 | { |
||
22 | /** |
||
23 | * @var Request|null |
||
24 | */ |
||
25 | private $request; |
||
26 | |||
27 | /** |
||
28 | * @var CommentInterface |
||
29 | */ |
||
30 | private $comment; |
||
31 | |||
32 | public function __construct(CommentInterface $comment, ?Request $request = null) |
||
37 | |||
38 | final public function getComment(): CommentInterface |
||
42 | |||
43 | final public function getRequest(): ?Request |
||
47 | } |
||
48 |