removeNamespace() public static method

public static removeNamespace ( string $namespacedClassName ) : string
$namespacedClassName string
return string
示例#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;
 }
示例#2
0
 /**
  * Allows to define from which class the curent model extends
  * @param bool $short
  * @return string
  */
 public function getExtends($short = false)
 {
     $extends = '';
     if ($this->isArray()) {
         $extends = $this->getGenerator()->getOptionStructArrayClass();
     } elseif (!$this->getIsRestriction()) {
         $extends = $this->getGenerator()->getOptionStructClass();
     }
     return $short ? Utils::removeNamespace($extends) : $extends;
 }