<?php

namespace App\Modules\HR\Performance\Policies;

use App\Models\User;

class PerformancePolicy
{
    public function viewAny(User $user): bool
    {
        return $user->can('performance.view');
    }

    public function create(User $user): bool
    {
        return $user->can('performance.create');
    }

    public function update(User $user): bool
    {
        return $user->can('performance.update');
    }

    public function manage(User $user): bool
    {
        return $user->can('performance.manage');
    }
}
