private function getFileName()
    {
        $name = $this->getArgumentNameOnly();

        switch ($this->option('type')) {
            case 'view':

                break;
            case 'model':
                $name = $this->getModelName();
                break;
            case 'controller':
                $name = $this->getControllerName($name);
                break;
            case 'seed':
                $name = $this->getSeedName($name);
                break;
        }

        // overide the name
        if ($this->option('name')) {
            return $this->option('name') . $this->settings['file_type'];
        }

        return $this->settings['prefix'] . $name . $this->settings['postfix'] . $this->settings['file_type'];
    }
private function getFileName()
    {
        $name = $this->getArgumentNameOnly();

        switch ($this->option('type')) {
            case 'view':

                break;
            case 'model':
                $name = $this->getModelName();
                break;
            case 'controller':
                $name = $this->getControllerName($name);
                break;
            case 'seed':
                $name = $this->getSeedName($name);
                break;
        }

        // overide the name
        if ($this->option('name')) {
            return $this->option('name') . $this->settings['file_type'];
        }

        return $this->settings['prefix'] . $name . $this->settings['postfix'] . $this->settings['file_type'];
    }
private function getFileName ( ) { $ name = $ this -> getArgumentNameOnly ( ) ; switch ( $ this -> option ( 'type' ) ) { case 'view' : break ; case 'model' : $ name = $ this -> getModelName ( ) ; break ; case 'controller' : $ name = $ this -> getControllerName ( $ name ) ; break ; case 'seed' : $ name = $ this -> getSeedName ( $ name ) ; break ; } // overide the name if ( $ this -> option ( 'name' ) ) { return $ this -> option ( 'name' ) . $ this -> settings [ 'file_type' ] ; } return $ this -> settings [ 'prefix' ] . $ name . $ this -> settings [ 'postfix' ] . $ this -> settings [ 'file_type' ] ; }
Get the filename of the file to generate

@return string
Get the filename of the file to generate