PHP 클래스 ApiPlatform\Core\Metadata\Resource\ResourceMetadata

저자: Kévin Dunglas ([email protected])
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $shortName = null, string $description = null, string $iri = null, array $itemOperations = null, array $collectionOperations = null, array $attributes = null )
getAttribute ( string $key, mixed $defaultValue = null ) : mixed Gets an attribute.
getAttributes ( ) : array | null Gets attributes.
getCollectionOperationAttribute ( string $operationName, string $key, mixed $defaultValue = null, boolean $resourceFallback = false ) : mixed Gets a collection operation attribute, optionally fallback to a resource attribute.
getCollectionOperations ( ) : array | null Gets collection operations.
getDescription ( ) : string | null Gets the description.
getIri ( ) : string | null Gets the associated IRI.
getItemOperationAttribute ( string $operationName, string $key, mixed $defaultValue = null, boolean $resourceFallback = false ) : mixed Gets an item operation attribute, optionally fallback to a resource attribute.
getItemOperations ( ) : array | null Gets item operations.
getShortName ( ) : string | null Gets the short name.
withAttributes ( array $attributes ) : self Returns a new instance with the given attribute.
withCollectionOperations ( array $collectionOperations ) : self Returns a new instance with the given collection operations.
withDescription ( string $description ) : self Returns a new instance with the given description.
withIri ( string $iri ) : self Returns a new instance with the given IRI.
withItemOperations ( array $itemOperations ) : self Returns a new instance with the given item operations.
withShortName ( string $shortName ) : self Returns a new instance with the given short name.

비공개 메소드들

메소드 설명
getOperationAttribute ( array $operations = null, string $operationName, string $key, mixed $defaultValue = null, boolean $resourceFallback = false ) : mixed Gets an operation attribute, optionally fallback to a resource attribute.

메소드 상세

__construct() 공개 메소드

public __construct ( string $shortName = null, string $description = null, string $iri = null, array $itemOperations = null, array $collectionOperations = null, array $attributes = null )
$shortName string
$description string
$iri string
$itemOperations array
$collectionOperations array
$attributes array

getAttribute() 공개 메소드

Gets an attribute.
public getAttribute ( string $key, mixed $defaultValue = null ) : mixed
$key string
$defaultValue mixed
리턴 mixed

getAttributes() 공개 메소드

Gets attributes.
public getAttributes ( ) : array | null
리턴 array | null

getCollectionOperationAttribute() 공개 메소드

Gets a collection operation attribute, optionally fallback to a resource attribute.
public getCollectionOperationAttribute ( string $operationName, string $key, mixed $defaultValue = null, boolean $resourceFallback = false ) : mixed
$operationName string
$key string
$defaultValue mixed
$resourceFallback boolean
리턴 mixed

getCollectionOperations() 공개 메소드

Gets collection operations.
public getCollectionOperations ( ) : array | null
리턴 array | null

getDescription() 공개 메소드

Gets the description.
public getDescription ( ) : string | null
리턴 string | null

getIri() 공개 메소드

Gets the associated IRI.
public getIri ( ) : string | null
리턴 string | null

getItemOperationAttribute() 공개 메소드

Gets an item operation attribute, optionally fallback to a resource attribute.
public getItemOperationAttribute ( string $operationName, string $key, mixed $defaultValue = null, boolean $resourceFallback = false ) : mixed
$operationName string
$key string
$defaultValue mixed
$resourceFallback boolean
리턴 mixed

getItemOperations() 공개 메소드

Gets item operations.
public getItemOperations ( ) : array | null
리턴 array | null

getShortName() 공개 메소드

Gets the short name.
public getShortName ( ) : string | null
리턴 string | null

withAttributes() 공개 메소드

Returns a new instance with the given attribute.
public withAttributes ( array $attributes ) : self
$attributes array
리턴 self

withCollectionOperations() 공개 메소드

Returns a new instance with the given collection operations.
public withCollectionOperations ( array $collectionOperations ) : self
$collectionOperations array
리턴 self

withDescription() 공개 메소드

Returns a new instance with the given description.
public withDescription ( string $description ) : self
$description string
리턴 self

withIri() 공개 메소드

Returns a new instance with the given IRI.
public withIri ( string $iri ) : self
$iri string
리턴 self

withItemOperations() 공개 메소드

Returns a new instance with the given item operations.
public withItemOperations ( array $itemOperations ) : self
$itemOperations array
리턴 self

withShortName() 공개 메소드

Returns a new instance with the given short name.
public withShortName ( string $shortName ) : self
$shortName string
리턴 self