|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ private ?array $additionalData = null; /** * @var array|null $employees Collection des employés de la page. */ private ?array $employees = null; /** * @var PaginationMeta|null $pagination Métadonnées de pagination. */ private ?PaginationMeta $pagination = null; /** * Instantiates a new EmployeeListResponse and sets the default values. */ public function __construct() { $this->setAdditionalData([]); } /** * Creates a new instance of the appropriate class based on discriminator value * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object * @return EmployeeListResponse */ public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeListResponse { return new EmployeeListResponse(); } /** * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @return array|null */ public function getAdditionalData(): ?array { return $this->additionalData; } /** * Gets the employees property value. Collection des employés de la page. * @return array|null */ public function getEmployees(): ?array { return $this->employees; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'employees' => fn(ParseNode $n) => $o->setEmployees($n->getCollectionOfObjectValues([Employee::class, 'createFromDiscriminatorValue'])), 'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the pagination property value. Métadonnées de pagination. * @return PaginationMeta|null */ public function getPagination(): ?PaginationMeta { return $this->pagination; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeCollectionOfObjectValues('employees', $this->getEmployees()); $writer->writeObjectValue('pagination', $this->getPagination()); $writer->writeAdditionalData($this->getAdditionalData()); } /** * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. * @param array $value Value to set for the AdditionalData property. */ public function setAdditionalData(?array $value): void { $this->additionalData = $value; } /** * Sets the employees property value. Collection des employés de la page. * @param array|null $value Value to set for the employees property. */ public function setEmployees(?array $value): void { $this->employees = $value; } /** * Sets the pagination property value. Métadonnées de pagination. * @param PaginationMeta|null $value Value to set for the pagination property. */ public function setPagination(?PaginationMeta $value): void { $this->pagination = $value; } }