JonathanTorres\Construct\Construct::generate PHP Method

generate() public method

Generate project.
public generate ( Settings $settings, JonathanTorres\Construct\Helpers\Git $git, Script $script ) : void
$settings Settings The command settings made by the user.
$git JonathanTorres\Construct\Helpers\Git The git helper.
$script JonathanTorres\Construct\Helpers\Script The script helper.
return void
    public function generate(Settings $settings, Git $git, Script $script)
    {
        $this->settings = $settings;
        $this->saveNames();
        $this->root();
        $this->src();
        $this->docs();
        $this->testing();
        if ($this->settings->withPhpcsConfiguration()) {
            $this->phpcs();
        }
        if ($this->settings->withVagrantFile()) {
            $this->vagrant();
        }
        if ($this->settings->withEditorConfig()) {
            $this->editorConfig();
        }
        if ($this->settings->withEnvironmentFiles()) {
            $this->environmentFiles();
        }
        if ($this->settings->withLgtmConfiguration()) {
            $this->lgtmFiles();
        }
        if ($this->settings->withGithubTemplates()) {
            $this->githubTemplates();
        }
        if ($this->settings->withGithubDocs()) {
            $this->githubDocs();
        }
        if ($this->settings->withCodeOfConduct()) {
            $this->codeOfConduct();
        }
        $this->travis();
        $this->license($git);
        $this->composer($git);
        $this->projectClass();
        $this->gitignore();
        $this->gitmessage();
        $this->gitattributes();
        if ($this->settings->withGitInit()) {
            $this->gitInit($git);
        }
        $this->composerInstall($script);
        $this->scripts($script);
    }