Phpro\SoapClient\CodeGenerator\Util\Normalizer::normalizeProperty PHP Method

normalizeProperty() public static method

public static normalizeProperty ( $property ) : mixed
$property
return mixed
    public static function normalizeProperty($property)
    {
        return preg_replace('{[^a-z0-9_]}i', '', $property);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Property constructor.
  *
  * @param string $name
  * @param string $type
  */
 public function __construct($name, $type)
 {
     $this->name = Normalizer::normalizeProperty($name);
     $this->type = Normalizer::normalizeDataType($type);
 }