PHP 클래스 VersionPress\Tests\Utils\OptionsConventionConverter

파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

getCliOptionName() 공개 정적인 메소드

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

getEnvVarOptionName() 공개 정적인 메소드

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