<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Services\ApplicabilityEngine;

class FormComplianceController extends Controller
{
    protected $engine;

    public function __construct(ApplicabilityEngine $engine)
    {
        $this->engine = $engine;
    }

    public function applicableForms($clientId, $branchId)
    {
        return response()->json(
            $this->engine->getApplicableForms($clientId, $branchId)
        );
    }
}
