FOF30\Generator\Command\Generate::doChecks PHP Метод

doChecks() защищенный Метод

protected doChecks ( )
    protected function doChecks()
    {
        $input = $this->input;
        // Do I have a name of the view?
        if (!$input->getString('name')) {
            throw new \RuntimeException("You have to specify the name of the view that will be used to generate FOF objects");
        }
        // Ok, did the user told me WHAT he wants?
        if ($input->get('layout')) {
            return;
        }
        if ($input->get('controller')) {
            return;
        }
        if ($input->get('model')) {
            return;
        }
        if ($input->get('view')) {
            return;
        }
        if ($input->get('mvc')) {
            return;
        }
        throw new \RuntimeException("You have to specify **what** you want to create: model, view, controller or layout");
    }