<?php

namespace Square\Labor\EmployeeWages\Requests;

use Square\Core\Json\JsonSerializableType;

class ListEmployeeWagesRequest extends JsonSerializableType
{
    /**
     * @var ?string $employeeId Filter the returned wages to only those that are associated with the specified employee.
     */
    private ?string $employeeId;

    /**
     * The maximum number of `EmployeeWage` results to return per page. The number can range between
     * 1 and 200. The default is 200.
     *
     * @var ?int $limit
     */
    private ?int $limit;

    /**
     * @var ?string $cursor A pointer to the next page of `EmployeeWage` results to fetch.
     */
    private ?string $cursor;

    /**
     * @param array{
     *   employeeId?: ?string,
     *   limit?: ?int,
     *   cursor?: ?string,
     * } $values
     */
    public function __construct(
        array $values = [],
    ) {
        $this->employeeId = $values['employeeId'] ?? null;
        $this->limit = $values['limit'] ?? null;
        $this->cursor = $values['cursor'] ?? null;
    }

    /**
     * @return ?string
     */
    public function getEmployeeId(): ?string
    {
        return $this->employeeId;
    }

    /**
     * @param ?string $value
     */
    public function setEmployeeId(?string $value = null): self
    {
        $this->employeeId = $value;
        $this->_setField('employeeId');
        return $this;
    }

    /**
     * @return ?int
     */
    public function getLimit(): ?int
    {
        return $this->limit;
    }

    /**
     * @param ?int $value
     */
    public function setLimit(?int $value = null): self
    {
        $this->limit = $value;
        $this->_setField('limit');
        return $this;
    }

    /**
     * @return ?string
     */
    public function getCursor(): ?string
    {
        return $this->cursor;
    }

    /**
     * @param ?string $value
     */
    public function setCursor(?string $value = null): self
    {
        $this->cursor = $value;
        $this->_setField('cursor');
        return $this;
    }
}
