WsdlToPhp\PackageGenerator\Generator\Utils::removeNamespace PHP Method

removeNamespace() public static method

public static removeNamespace ( string $namespacedClassName ) : string
$namespacedClassName string
return string
    public static function removeNamespace($namespacedClassName)
    {
        $elements = explode('\\', $namespacedClassName);
        return (string) array_pop($elements);
    }

Usage Example

Beispiel #1
0
 /**
  * Allows to define from which class the curent model extends
  * @param bool $short
  * @return string
  */
 public function getExtends($short = false)
 {
     $extends = $this->getGenerator()->getOptionSoapClientClass();
     return $short ? Utils::removeNamespace($extends) : $extends;
 }
All Usage Examples Of WsdlToPhp\PackageGenerator\Generator\Utils::removeNamespace