add history for user in accompanying period (+ counter)

This commit is contained in:
2022-01-28 14:42:18 +01:00
parent 2cd51eed2e
commit fcd5fba13e
6 changed files with 196 additions and 31 deletions

View File

@@ -1,8 +1,19 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chill\MainBundle\Serializer\Model;
class Counter implements \JsonSerializable
use JsonSerializable;
class Counter implements JsonSerializable
{
private int $counter;
@@ -16,16 +27,15 @@ class Counter implements \JsonSerializable
return $this->counter;
}
public function setCounter(?int $counter): Counter
{
$this->counter = $counter;
return $this;
}
public function jsonSerialize()
{
return ['count' => $this->counter];
}
public function setCounter(?int $counter): Counter
{
$this->counter = $counter;
return $this;
}
}