<?php

namespace App\Classes\Modules\Rewards\Standards\Rules;

use App\Classes\General\Abstracts\AbstractRule;
use App\Classes\Modules\Rewards\DataTransferObjects\RewardObject;
use Illuminate\Support\Facades\Auth;

class CanDeleteReward extends AbstractRule
{
    /**
     * @return bool
     */
    protected function authorized(): bool
    {
        if (!Auth::user()->can('delete reward')) {
            return false;
        }

        return true;

    }

    /**
     * @param RewardObject $object
     * @return bool
     */
    protected function validators($object): bool
    {
        return true;

    }


    /**
     * @param RewardObject $object
     * @return bool
     */
    protected function criteria($object): bool
    {
        return true;
    }

}
