ZF\Apigility\Admin\Model\RestServiceEntity::getArrayCopy PHP 메소드

getArrayCopy() 공개 메소드

public getArrayCopy ( )
    public function getArrayCopy()
    {
        $array = ['accept_whitelist' => $this->acceptWhitelist, 'collection_class' => $this->collectionClass, 'collection_http_methods' => $this->collectionHttpMethods, 'collection_name' => $this->collectionName, 'collection_query_whitelist' => $this->collectionQueryWhitelist, 'content_type_whitelist' => $this->contentTypeWhitelist, 'controller_service_name' => $this->controllerServiceName, 'entity_class' => $this->entityClass, 'entity_http_methods' => $this->entityHttpMethods, 'entity_identifier_name' => $this->entityIdentifierName, 'hydrator_name' => $this->hydratorName, 'module' => $this->module, 'page_size_param' => $this->pageSizeParam, 'page_size' => $this->pageSize, 'resource_class' => $this->resourceClass, 'route_identifier_name' => $this->routeIdentifierName, 'route_match' => $this->routeMatch, 'route_name' => $this->routeName, 'selector' => $this->selector, 'service_name' => $this->serviceName];
        if (null !== $this->inputFilters) {
            $array['input_filters'] = $this->inputFilters;
        }
        if (null !== $this->documentation) {
            $array['documentation'] = $this->documentation;
        }
        return $array;
    }

Usage Example

 public function getArrayCopy()
 {
     $data = parent::getArrayCopy();
     $data['hydrator_name'] = $this->hydratorName;
     $data['object_manager'] = $this->objectManager;
     $data['by_value'] = $this->byValue;
     $data['strategies'] = $this->hydratorStrategies;
     $data['use_generated_hydrator'] = $this->useGeneratedHydrator;
     return $data;
 }
All Usage Examples Of ZF\Apigility\Admin\Model\RestServiceEntity::getArrayCopy