src/Common/Console/Command/Make/Model.php
private function createLocalisedModel(
        \stdClass $oModel,
        bool $bSkipDb,
        bool $bAdmin,
        bool $bSkipSeeder
    ): array {
        $this
            ->createModelFile($oModel, 'model_localised')
            ->createResource($oModel, 'resource');

        if (!$bSkipDb) {
            $this->createDatabaseTable($oModel, 'model_table_localised');
        }

        if ($bAdmin) {
            $this->createAdminController($oModel);
        }

        if (!$bSkipSeeder) {
            $this->createSeeder($oModel);
        }

        return $this->generateServiceDefinitions($oModel);
    }
private function createLocalisedModel(
        \stdClass $oModel,
        bool $bSkipDb,
        bool $bAdmin,
        bool $bSkipSeeder
    ): array {
        $this
            ->createModelFile($oModel, 'model_localised')
            ->createResource($oModel, 'resource');

        if (!$bSkipDb) {
            $this->createDatabaseTable($oModel, 'model_table_localised');
        }

        if ($bAdmin) {
            $this->createAdminController($oModel);
        }

        if (!$bSkipSeeder) {
            $this->createSeeder($oModel);
        }

        return $this->generateServiceDefinitions($oModel);
    }
private function createLocalisedModel ( \ stdClass $ oModel , bool $ bSkipDb , bool $ bAdmin , bool $ bSkipSeeder ) : array { $ this -> createModelFile ( $ oModel , 'model_localised' ) -> createResource ( $ oModel , 'resource' ) ; if ( ! $ bSkipDb ) { $ this -> createDatabaseTable ( $ oModel , 'model_table_localised' ) ; } if ( $ bAdmin ) { $ this -> createAdminController ( $ oModel ) ; } if ( ! $ bSkipSeeder ) { $ this -> createSeeder ( $ oModel ) ; } return $ this -> generateServiceDefinitions ( $ oModel ) ; }
Orchestrates the creation of a localised model

@param \stdClass $oModel      The model being created
@param bool      $bSkipDb     Whether to skip table creation
@param bool      $bAdmin      Whether to create an admin controller or not
@param bool      $bSkipSeeder Whether to skip seeder creation

@return array
Orchestrates the creation of a localised model