ZF\Apigility\Admin\Model\ModuleEntity::getNamespace PHP Method

getNamespace() public method

public getNamespace ( ) : string
return string
    public function getNamespace()
    {
        return $this->namespace;
    }

Usage Example

 protected function injectModuleResourceRelationalLinks(Model\ModuleEntity $module, $links, HalJsonModel $model)
 {
     $moduleData = $module->getArrayCopy();
     $moduleName = $moduleData['name'];
     $this->injectLinksForServicesByType('authorization', array(), $links, $moduleName);
     $this->injectLinksForServicesByType('rest', $moduleData['rest'], $links, $moduleName);
     unset($moduleData['rest']);
     $this->injectLinksForServicesByType('rpc', $moduleData['rpc'], $links, $moduleName);
     unset($moduleData['rpc']);
     $module = new Model\ModuleEntity($module->getNamespace(), array(), array(), $module->isVendor());
     $module->exchangeArray($moduleData);
     $replacement = new Entity($module, $moduleName);
     $replacement->setLinks($links);
     $model->setPayload($replacement);
 }