<?php
/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */

namespace WriteTextAI\WriteTextAI\Model;

use Magento\Framework\Api\Search\SearchCriteriaBuilder as MagentoSearchCriteriaBuilder;

class SearchCriteriaBuilder extends MagentoSearchCriteriaBuilder
{
    /**
     * Add filter group to search criteria
     *
     * @param array $filterGroup
     * @return $this
     */
    public function addFilterGroup($filterGroup)
    {
        $this->data[SearchCriteria::FILTER_GROUPS][] = $filterGroup;
        return $this;
    }
}
