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

normalizeNamespace() public static method

public static normalizeNamespace ( string $namespace ) : string
$namespace string
return string
    public static function normalizeNamespace($namespace)
    {
        return trim(str_replace('/', '\\', $namespace), '\\');
    }

Usage Example

Exemplo n.º 1
0
 /**
  * TypeMap constructor.
  *
  * @param string $namespace
  * @param array $types
  */
 public function __construct($namespace, array $types)
 {
     $this->namespace = Normalizer::normalizeNamespace($namespace);
     foreach ($types as $type => $properties) {
         $this->types[] = new Type($namespace, $type, $properties);
     }
 }
All Usage Examples Of Phpro\SoapClient\CodeGenerator\Util\Normalizer::normalizeNamespace