Created new action to get default visit stats

This commit is contained in:
Alejandro Celaya
2020-05-01 11:40:02 +02:00
parent 5beaab85ac
commit 1ef10f11cb
9 changed files with 129 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Visit\Model;
use JsonSerializable;
final class VisitsStats implements JsonSerializable
{
private int $visitsCount;
public function __construct(int $visitsCount)
{
$this->visitsCount = $visitsCount;
}
public function jsonSerialize(): array
{
return [
'visitsCount' => $this->visitsCount,
];
}
}