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

14 lines
406 B
PHP
Raw Permalink Normal View History

2020-06-07 19:04:43 +03:00
<?php declare(strict_types=1);
namespace openvk\Web\Models\Entities\Notifications;
use openvk\Web\Models\Entities\{User, Post};
final class WallPostNotification extends Notification
{
protected $actionCode = 3;
function __construct(User $recipient, Post $post, User $poster)
{
parent::__construct($recipient, $post, $poster, time(), ovk_proc_strtr($post->getText(), 10));
}
}