AppVersionFilter.php 594 Bytes
<?php

namespace App\ModelFilters;

use App\Support\ModelFilter;

class AppVersionFilter extends ModelFilter
{
    /**
     * @param int $force
     * @return void
     */
    public function isForce(int $force): void
    {
        $this->where('is_force', $force);
    }

    /**
     * @param string $os
     * @return void
     */
    public function os(string $os): void
    {
        $this->where('os', $os);
    }

    /**
     * @param string $appNo
     * @return void
     */
    public function appNoLike(string $appNo): void
    {
        $this->whereLike('app_no', $appNo);
    }
}