PHP Class ApiPlatform\Core\Metadata\Resource\Factory\PhpDocResourceMetadataFactory

Author: Kévin Dunglas ([email protected])
Inheritance: implements ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
Show file Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
__construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $decorated, phpDocumentor\Reflection\DocBlockFactoryInterface $docBlockFactory = null )
create ( string $resourceClass ) : ResourceMetadata

Method Details

__construct() public method

public __construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $decorated, phpDocumentor\Reflection\DocBlockFactoryInterface $docBlockFactory = null )
$decorated ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$docBlockFactory phpDocumentor\Reflection\DocBlockFactoryInterface

create() public method

public create ( string $resourceClass ) : ResourceMetadata
$resourceClass string
return ApiPlatform\Core\Metadata\Resource\ResourceMetadata