<?php

namespace App\Generated\Controllers\V1;

use App\Http\Services\V1\TagsService;
use App\Http\Controllers\Controller;
use App\Generated\V1\Messages\Tags\GetAllTagMessage;
use DB;

class TagsController extends Controller
{
    public $handler;

    public function __construct(TagsService $handler)
    {
        $this->handler = $handler;
    }

    public function getAllTag(GetAllTagMessage $message)
    {
        $message->validateInput();
        $this->handler->getAllTag($message);
        $message->validateOutput();
        return $message->getResponse();
    }

}
