app\models\PaymentMethod::scopeIsBankAccount PHP 메소드

scopeIsBankAccount() 공개 메소드

public scopeIsBankAccount ( $query, $isBank )
$query
$isBank
    public function scopeIsBankAccount($query, $isBank)
    {
        if ($isBank) {
            $query->where('payment_type_id', '=', PAYMENT_TYPE_ACH);
        } else {
            $query->where('payment_type_id', '!=', PAYMENT_TYPE_ACH);
        }
    }