<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 26.08.2020
 * Time: 14:55
 */

namespace Diamond\Repositories\StatBan;


use Diamond\Domain\StatBan\StatBanCollection;
use Diamond\Domain\StatRule\StatRuleCollection;
use Diamond\Infrastructure\Models\Stat\Stat;
use Diamond\Infrastructure\Models\Stat\StatQuery;
use Diamond\Infrastructure\Models\StatBan\StatBan;
use Diamond\Infrastructure\Models\StatBan\StatBanQuery;
use Diamond\Infrastructure\Models\StatRule\StatRule;
use Diamond\Infrastructure\Models\StatRule\StatRuleQuery;
use Diamond\Repositories\PropelAbstractRepository;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\ActiveQuery\ModelCriteria;
use Repo\CollectionInterface;
use Repo\CrudRepositoryBuilderInterface;
use Repo\EntityInterface;
use Repo\PaginationInterface;

class StatBanRepository extends PropelAbstractRepository implements CrudRepositoryBuilderInterface
{

    public static function createEntity(): EntityInterface
    {
        return new StatBan();
    }


    protected function createCollection(): CollectionInterface
    {
        return new StatBanCollection();
    }

    /**
     * @param PaginationInterface|StatCriteriaInterface $criteria
     * @param ModelCriteria|StatQuery $dbCriteria
     */
    protected function modifyCriteria(PaginationInterface $criteria, ModelCriteria $dbCriteria): void
    {
 
    }

    /**
     * @return ModelCriteria
     */
    protected function createQuery(): ModelCriteria
    {
        return StatBanQuery::create();
    }

}