PHP Класс JonathanTorres\Construct\Settings

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $projectName, string $testingFramework, string $license, string $namespace, boolean $gitInit, boolean $phpcsConfiguration, string $composerKeywords, boolean $vagrantfile, boolean $editorConfig, boolean $phpVersion, boolean $environmentFiles, boolean $lgtmConfiguration, boolean $githubTemplates = false, boolean $codeOfConduct = false, boolean $githubDocs = false ) : void Initialize.
getComposerKeywords ( ) : string Get the entered Composer keywords.
getLicense ( ) : string Get the entered license.
getNamespace ( ) : string Get the entered namespace.
getPhpVersion ( ) : string Get the entered project php version.
getProjectName ( ) : string Get the entered project name.
getTestingFramework ( ) : string Get the entered testing framework.
withCodeOfConduct ( ) : boolean Whether or not to create a Code of Conduct file.
withEditorConfig ( ) : boolean Whether or not to create an EditorConfig file.
withEnvironmentFiles ( ) : boolean Whether or not to create .env environment files.
withGitInit ( ) : boolean Whether or not to initialize a git repo on the project.
withGithubDocs ( ) : boolean Whether or not to create GitHub documentation files.
withGithubTemplates ( ) : boolean Whether or not to create GitHub template files.
withLgtmConfiguration ( ) : boolean Whether or not to create LGTM configuration files.
withPhpcsConfiguration ( ) : boolean Whether or not to use phpcs on the project.
withVagrantfile ( ) : boolean Whether or not to create a Vagrantfile.

Описание методов

__construct() публичный Метод

Initialize.
public __construct ( string $projectName, string $testingFramework, string $license, string $namespace, boolean $gitInit, boolean $phpcsConfiguration, string $composerKeywords, boolean $vagrantfile, boolean $editorConfig, boolean $phpVersion, boolean $environmentFiles, boolean $lgtmConfiguration, boolean $githubTemplates = false, boolean $codeOfConduct = false, boolean $githubDocs = false ) : void
$projectName string The entered project name.
$testingFramework string The entered testing framework.
$license string The entered project license.
$namespace string The entered namespace.
$gitInit boolean Initialize a git repo?
$phpcsConfiguration boolean Generate a PHP Coding Standards Fixer configuration?
$composerKeywords string The entered list of Composer keywords.
$vagrantfile boolean Generate a Vagrantfile?
$editorConfig boolean Generate an EditorConfig file?
$phpVersion boolean The entered php version
$environmentFiles boolean Generate .env environment files?
$lgtmConfiguration boolean Generate LGTM configuration files?
$githubTemplates boolean Generate GitHub templates?
$codeOfConduct boolean Generate Code of Conduct file?
$githubDocs boolean Generate GitHub docs?
Результат void

getComposerKeywords() публичный Метод

Get the entered Composer keywords.
public getComposerKeywords ( ) : string
Результат string

getLicense() публичный Метод

Get the entered license.
public getLicense ( ) : string
Результат string

getNamespace() публичный Метод

Get the entered namespace.
public getNamespace ( ) : string
Результат string

getPhpVersion() публичный Метод

Get the entered project php version.
public getPhpVersion ( ) : string
Результат string

getProjectName() публичный Метод

Get the entered project name.
public getProjectName ( ) : string
Результат string

getTestingFramework() публичный Метод

Get the entered testing framework.
public getTestingFramework ( ) : string
Результат string

withCodeOfConduct() публичный Метод

Whether or not to create a Code of Conduct file.
public withCodeOfConduct ( ) : boolean
Результат boolean

withEditorConfig() публичный Метод

Whether or not to create an EditorConfig file.
public withEditorConfig ( ) : boolean
Результат boolean

withEnvironmentFiles() публичный Метод

Whether or not to create .env environment files.
public withEnvironmentFiles ( ) : boolean
Результат boolean

withGitInit() публичный Метод

Whether or not to initialize a git repo on the project.
public withGitInit ( ) : boolean
Результат boolean

withGithubDocs() публичный Метод

Whether or not to create GitHub documentation files.
public withGithubDocs ( ) : boolean
Результат boolean

withGithubTemplates() публичный Метод

Whether or not to create GitHub template files.
public withGithubTemplates ( ) : boolean
Результат boolean

withLgtmConfiguration() публичный Метод

Whether or not to create LGTM configuration files.
public withLgtmConfiguration ( ) : boolean
Результат boolean

withPhpcsConfiguration() публичный Метод

Whether or not to use phpcs on the project.
public withPhpcsConfiguration ( ) : boolean
Результат boolean

withVagrantfile() публичный Метод

Whether or not to create a Vagrantfile.
public withVagrantfile ( ) : boolean
Результат boolean