<?php
/**
 * Copyright © 2018 EaDesign by Eco Active S.R.L. All rights reserved.
 * See LICENSE for license details.
 */

namespace Eadesigndev\RomCity\Model\ResourceModel\Collection;

use Eadesigndev\RomCity\Model\RomCity as RomCityModel;
use Eadesigndev\RomCity\Model\ResourceModel\RomCity  as RomCityResourceModel;

#[\AllowDynamicProperties]
class Collection extends AbstractCollection
{
    /**
     * @var string
     */
    //@codingStandardsIgnoreLine
    protected $_idCity = 'entity_id';

    /**
     * Init resource model
     * @return void
     */
    public function _construct()
    {

        $this->_init(
            RomCityModel::class,
            RomCityResourceModel::class
        );
        $this->_map['romcity']['entity_id'] = 'main_table.entity_id';
    }

    /**
     * Add filter by store
     *
     * @param int|array|\Magento\Store\Model\Store $store
     * @param bool $withAdmin
     * @return $this
     */
    public function addStoreFilter($store, $withAdmin = true)
    {
        return $this;
    }
}