for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Model;
use App\Entity\Employee;
use JMS\Serializer\Annotation\Accessor;
use JMS\Serializer\Annotation\ExclusionPolicy;
use JMS\Serializer\Annotation\Expose;
use JMS\Serializer\Annotation\Type;
/**
* Class EmployeesResponse
* @package App\Model
* @ExclusionPolicy("all")
*/
class EmployeesResponse extends AbstractPaginatedModel
{
* @var Employee[]
* @Type("array<App\Entity\Employee>")
* @Expose
public $employees;
* @Type("integer")
* @Accessor(getter="getCount")
public int $count;
public int $currentPage;
public int $overAllCount;
public function getCount(): int
return count($this->employees);
}