ZF\Apigility\TableGatewayAbstractFactory::getEntityFromConfig PHP Метод

getEntityFromConfig() защищенный Метод

If configuration defines an entity_class, and the class exists, that value is returned; if no configuration is provided, stdClass is returned.
protected getEntityFromConfig ( array $config, string $requestedName ) : string
$config array
$requestedName string
Результат string Class name of entity
    protected function getEntityFromConfig(array $config, $requestedName)
    {
        $entity = isset($config['entity_class']) ? $config['entity_class'] : stdClass::class;
        if (!class_exists($entity)) {
            throw new ServiceNotCreatedException(sprintf('Unable to create instance for service "%s"; entity class "%s" cannot be found', $requestedName, $entity));
        }
        return $entity;
    }