PHP 클래스 Vanilla\Utility\NameScheme

파일 보기 프로젝트 열기: vanilla/vanilla

공개 메소드들

메소드 설명
convert ( string $name ) : string Convert a name into this name spec.
convertArrayKeys ( array $array, array $keysSkipRecursion = [] ) : array Recursively convert all of the array keys in an array to this name scheme.
valid ( string $name ) : boolean Test that a name is valid for this scheme.

메소드 상세

convert() 추상적인 공개 메소드

Convert a name into this name spec.
abstract public convert ( string $name ) : string
$name string The name to convert to this scheme.
리턴 string Returns the new name as a string.

convertArrayKeys() 공개 메소드

Recursively convert all of the array keys in an array to this name scheme.
public convertArrayKeys ( array $array, array $keysSkipRecursion = [] ) : array
$array array The array to convert.
$keysSkipRecursion array Skip recursion for the following keys.
리턴 array Returns the converted array.

valid() 공개 메소드

Test that a name is valid for this scheme.
public valid ( string $name ) : boolean
$name string The name to test.
리턴 boolean Returns **true** if the name is valid for this spec or **false** otherwise.