PHP Class WsdlToPhp\PackageGenerator\File\Validation\AbstractRule

Mostra file Open project: wsdltophp/packagegenerator

Public Methods

Method Description
__construct ( Rules $rules )
applyRule ( string $parameterName, mixed $value, boolean $itemType = false ) : AbstractRule This method has to add the validation rule to the method's body
getAttribute ( ) : StructAttribute
getFile ( ) : AbstractModelFile
getMethod ( ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
getRules ( ) : Rules
setRules ( Rules $rules )

Method Details

__construct() public method

public __construct ( Rules $rules )
$rules Rules

applyRule() abstract public method

This method has to add the validation rule to the method's body
abstract public applyRule ( string $parameterName, mixed $value, boolean $itemType = false ) : AbstractRule
$parameterName string
$value mixed
$itemType boolean
return AbstractRule

getAttribute() public method

public getAttribute ( ) : StructAttribute
return WsdlToPhp\PackageGenerator\Model\StructAttribute

getFile() public method

public getFile ( ) : AbstractModelFile
return WsdlToPhp\PackageGenerator\File\AbstractModelFile

getMethod() public method

public getMethod ( ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
return WsdlToPhp\PhpGenerator\Element\PhpMethod

getRules() public method

public getRules ( ) : Rules
return Rules

setRules() public method

public setRules ( Rules $rules )
$rules Rules