PHP Class WsdlToPhp\PackageGenerator\File\Validation\ItemTypeRule

Inheritance: extends AbstractRule
Datei anzeigen Open project: wsdltophp/packagegenerator

Public Methods

Method Description
applyRule ( string $parameterName, mixed $value, boolean $itemType = false ) : ItemTypeRule

Protected Methods

Method Description
getItemSanityCheck ( StructAttribute $attribute, string $itemName ) : string The second case which used PHP native functions is volontary limited by the native functions provided by PHP, and the possible types defined in xsd_types.yml

Method Details

applyRule() public method

See also: WsdlToPhp\PackageGenerator\File\Validation\AbstractValidation::addRule()
public applyRule ( string $parameterName, mixed $value, boolean $itemType = false ) : ItemTypeRule
$parameterName string
$value mixed
$itemType boolean
return ItemTypeRule

getItemSanityCheck() protected method

The second case which used PHP native functions is volontary limited by the native functions provided by PHP, and the possible types defined in xsd_types.yml
protected getItemSanityCheck ( StructAttribute $attribute, string $itemName ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$itemName string
return string