getNamespace() 공개 메소드

JarvesBundle/node => JarvesBundle. bundleWithNameSpace/myObject => Bundle\With\Namespace.
public getNamespace ( string $objectKey ) : string
$objectKey string
리턴 string
예제 #1
0
파일: Propel.php 프로젝트: jarves/jarves
 /**
  * Returns php class name.
  *
  * @param  string $objectName
  *
  * @return string
  */
 public function getPhpName($objectName = null)
 {
     $clazz = Objects::normalizeObjectKey($objectName ?: $this->getObjectKey());
     $clazz = $this->objects->getNamespace($clazz) . '\\Model\\' . ucfirst($this->objects->getName($clazz));
     return $clazz;
 }