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

18 lines
412 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};
final class WallPostNotification extends Notification
{
protected $actionCode = 3;
public function __construct(User $recipient, Post $post, User $poster)
2020-06-07 19:04:43 +03:00
{
parent::__construct($recipient, $post, $poster, time(), ovk_proc_strtr($post->getText(), 10));
}
}