ajout compteurs

This commit is contained in:
2022-01-27 17:28:59 +01:00
parent 39a7cecd24
commit ce912e4405
5 changed files with 74 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Chill\MainBundle\Serializer\Model;
class Counter implements \JsonSerializable
{
private int $counter;
public function __construct(?int $counter)
{
$this->counter = $counter;
}
public function getCounter(): ?int
{
return $this->counter;
}
public function setCounter(?int $counter): Counter
{
$this->counter = $counter;
return $this;
}
public function jsonSerialize()
{
return ['count' => $this->counter];
}
}