<?php

declare(strict_types=1);

namespace App\Modules\Inventory\Presentation\Controllers;

use App\Modules\Inventory\Application\Services\WarehouseDocsPageService;

final class WarehouseDocsController
{
    private WarehouseDocsPageService $pages;

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

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

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

    public function print(): void
    {
        (new WarehouseDocPrintController($this->pages))();
    }
}
