mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
29 lines
488 B
PHP
29 lines
488 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\EventDispatcher;
|
|
|
|
use JsonSerializable;
|
|
|
|
final class VisitLocated implements JsonSerializable
|
|
{
|
|
/** @var string */
|
|
private $visitId;
|
|
|
|
public function __construct(string $visitId)
|
|
{
|
|
$this->visitId = $visitId;
|
|
}
|
|
|
|
public function visitId(): string
|
|
{
|
|
return $this->visitId;
|
|
}
|
|
|
|
public function jsonSerialize(): array
|
|
{
|
|
return ['visitId' => $this->visitId];
|
|
}
|
|
}
|