<?php
/**
 * Author: lang
 * Email: 732853989@qq.com
 * Date: 2023/3/24
 * Time: 10:56
 */

namespace Kkokk\Poster\Image\Queries;

class Query
{
    protected $query = [];

    public function clearQuery()
    {
        $this->query = [];
    }

    public function getQuery()
    {
        return $this->query;
    }

    public function setQuery($type, $params)
    {
        $this->query[] = compact('type', 'params');
    }

    public function setPath($path)
    {
        $this->setQuery('path', $path);
    }
}