<?php

namespace App\Generated\Controllers\V1;

use App\Generated\V1\Messages\School\GetListMessage;
use App\Http\Services\V1\SchoolService;
use App\Http\Controllers\Controller;
use DB;

class SchoolController extends Controller
{
    public $handler;

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

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

}
