. // }}} /** * Common utility functions * * @package GNUsocial * @category Util * * @author Hugo Sales * @copyright 2020-2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace App\Util\Notification; use App\Entity\Actor; class Notification { public const NOTICE_BY_FOLLOWED = 1; public const MENTION = 2; public const REPLY = 3; public const FOLLOW = 4; public const FAVORITE = 5; public const NUDGE = 6; public const DM = 7; /** * One of the above constants */ private int $type; /** * Who caused this notification */ private Actor $actor; public function __construct(int $type, Actor $actor) { $this->type = $type; $this->actor = $actor; } }