Method | Description | |
---|---|---|
validateAttribute ( string $name ) : string | Validates an attribute name against PHP naming conventions. | |
validateClass ( string $name, string $namespace = null ) : string | Validates a class name against PHP naming conventions and already defined classes. | |
validateConstant ( string $name ) : string | Validates a constant name against PHP naming conventions. | |
validateOperation ( string $name ) : string | Validates an operation name against PHP naming conventions. | |
validateType ( string $typeName ) : string | Validates a wsdl type against known PHP primitive types, or otherwise validates the namespace of the type to PHP naming conventions | |
validateTypeHint ( string $typeName ) : null | string | Validates a type to be used as a method parameter type hint. | |
validateUnique ( $name, callable $function, string $suffix = null ) : string | Validate that a name is unique. |
Method | Description | |
---|---|---|
isKeyword ( string $string ) : boolean | Checks if a string is a restricted keyword. | |
validateNamingConvention ( string $name ) : string | Validates a name against standard PHP naming conventions |
public static validateAttribute ( string $name ) : string | ||
$name | string | the name of the attribute to test |
return | string | The validated version of the submitted attribute name |
public static validateConstant ( string $name ) : string | ||
$name | string | the name of the constant to test |
return | string | The validated version of the submitted constant name |
public static validateOperation ( string $name ) : string | ||
$name | string | the name of the operation to test |
return | string | The validated version of the submitted operation name |
public static validateType ( string $typeName ) : string | ||
$typeName | string | the type to test |
return | string | the validated version of the submitted type |
public static validateUnique ( $name, callable $function, string $suffix = null ) : string | ||
$name | The name to test. | |
$function | callable | A callback which should return true if the element is unique. Otherwise false. |
$suffix | string | A suffix to append between the name and numbering. |
return | string | A unique name. |