<?php

namespace common\services;

use common\models\OperationalAdjustmentsRelateToSourceData;
use yii\db\ActiveQuery;

class OperationalAdjustmentsRelateToSourceDataService
{
    /**
     * return  OperationalAdjustmentsRelateToSourceData::find();
     * @return ActiveQuery
     */
    public static function getQuery(): ActiveQuery
    {
        return OperationalAdjustmentsRelateToSourceData::find();
    }

    /**
     * return  OperationalAdjustmentsRelateToSourceData::find()->andWhere(["emergency_response_id" => $emergencyResponseId])
     * @param $operationalAdjustmentsId
     * @return ActiveQuery
     */
    public static function getQueryByEmergencyResponseId($operationalAdjustmentsId): ActiveQuery
    {
        return self::getQuery()->andWhere(["operational_adjustments_id" => $operationalAdjustmentsId]);
    }
}