<?php

namespace Signteer\Core\Criteria;

class TaskCriteria
{
    private array $id = [];
    private array $sheetId = [];
    private array $title = [];

    public function whereId(string $compare, $v): self
    {
        $ret = clone $this;
        $ret->id[] = [$compare, $v];

        return $ret;
    }

    public function getWhereId(): array
    {
        return $this->id;
    }

    public function whereSheetId(string $compare, $v): self
    {
        $ret = clone $this;
        $ret->sheetId[] = [$compare, $v];

        return $ret;
    }

    public function getWhereSheetId(): array
    {
        return $this->sheetId;
    }

    public function whereTitle(string $compare, $v): self
    {
        $ret = clone $this;
        $ret->title[] = [$compare, $v];

        return $ret;
    }

    public function getWhereTitle(): array
    {
        return $this->title;
    }
}
