openvk/Web/Models/Entities/Notifications/CommentNotification.php

18 lines
463 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
2020-06-07 19:04:43 +03:00
namespace openvk\Web\Models\Entities\Notifications;
2020-06-07 19:04:43 +03:00
use openvk\Web\Models\Entities\{User, Post, Comment};
final class CommentNotification extends Notification
{
protected $actionCode = 2;
public function __construct(User $recipient, Comment $comment, $postable, User $commenter)
2020-06-07 19:04:43 +03:00
{
parent::__construct($recipient, $postable, $commenter, time(), ovk_proc_strtr(strip_tags($comment->getText()), 400));
2020-06-07 19:04:43 +03:00
}
}