<?php

declare(strict_types=1);

namespace App\Modules\Sales\Presentation\Controllers;

use App\Modules\Sales\Application\Services\SalesReceiptsPageService;

final class SalesReceiptsController
{
    private SalesReceiptsPageService $pages;

    public function __construct()
    {
        $this->pages = new SalesReceiptsPageService();
    }

    public function index(): void
    {
        $this->pages->handleIndex();
    }

    public function form(): void
    {
        $this->pages->handleForm();
    }

    public function view(): void
    {
        $this->pages->handleView();
    }
}
