getNamespace() public method

JarvesBundle/node => JarvesBundle. bundleWithNameSpace/myObject => Bundle\With\Namespace.
public getNamespace ( string $objectKey ) : string
$objectKey string
return 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;
 }