PHP Class VersionPress\Tests\Utils\OptionsConventionConverter

Afficher le fichier Open project: versionpress/versionpress Class Usage Examples

Méthodes publiques

Méthode Description
getCliOptionName ( string $propertyName ) : string Converts 'optionName' to 'option-name', i.e. from property convention to CLI convention
getEnvVarOptionName ( string $propertyName ) : string Converts 'optionName' to 'VP_OPTION_NAME', i.e. from property convention to env var convention

Method Details

getCliOptionName() public static méthode

Converts 'optionName' to 'option-name', i.e. from property convention to CLI convention
public static getCliOptionName ( string $propertyName ) : string
$propertyName string
Résultat string

getEnvVarOptionName() public static méthode

Converts 'optionName' to 'VP_OPTION_NAME', i.e. from property convention to env var convention
public static getEnvVarOptionName ( string $propertyName ) : string
$propertyName string
Résultat string