PHP 클래스 ApiPlatform\Core\Metadata\Property\PropertyMetadata

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

공개 메소드들

메소드 설명
__construct ( Symfony\Component\PropertyInfo\Type $type = null, string $description = null, boolean $readable = null, boolean $writable = null, boolean $readableLink = null, boolean $writableLink = null, boolean $required = null, boolean $identifier = null, string $iri = null, $childInherited = null, array $attributes = null )
getAttributes ( ) : array | null Gets attributes.
getDescription ( ) : string | null Gets description.
getIri ( ) : string | null Gets IRI of this property.
getType ( ) : Symfony\Component\PropertyInfo\Type | null Gets type.
isChildInherited ( ) : string | null Is the property inherited from a child class?
isIdentifier ( ) : boolean | null Is this attribute an identifier?
isReadable ( ) : boolean | null Is readable?
isReadableLink ( ) : boolean | null Is an IRI or an object generated in read context?
isRequired ( ) : boolean | null Is required?
isWritable ( ) : boolean | null Is writable?
isWritableLink ( ) : boolean | null Should an IRI or an object be provided in write context?
withAttributes ( array $attributes ) : self Returns a new instance with the given attribute.
withChildInherited ( string $childInherited ) : self Returns a new instance with the given child inherited class.
withDescription ( string $description ) : self Returns a new instance with the given description.
withIdentifier ( boolean $identifier ) : self Returns a new instance with the given identifier flag.
withIri ( string $iri = null ) : self Returns a new instance with the given IRI.
withReadable ( boolean $readable ) : self Returns a new instance of Metadata with the given readable flag.
withReadableLink ( boolean $readableLink ) : self Returns a new instance with the given readable link flag.
withRequired ( boolean $required ) : self Returns a new instance with the given required flag.
withType ( Symfony\Component\PropertyInfo\Type $type ) : self Returns a new instance with the given type.
withWritable ( boolean $writable ) : self Returns a new instance with the given writable flag.
withWritableLink ( boolean $writableLink ) : self Returns a new instance with the given writable link flag.

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\PropertyInfo\Type $type = null, string $description = null, boolean $readable = null, boolean $writable = null, boolean $readableLink = null, boolean $writableLink = null, boolean $required = null, boolean $identifier = null, string $iri = null, $childInherited = null, array $attributes = null )
$type Symfony\Component\PropertyInfo\Type
$description string
$readable boolean
$writable boolean
$readableLink boolean
$writableLink boolean
$required boolean
$identifier boolean
$iri string
$attributes array

getAttributes() 공개 메소드

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

getDescription() 공개 메소드

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

getIri() 공개 메소드

Gets IRI of this property.
public getIri ( ) : string | null
리턴 string | null

getType() 공개 메소드

Gets type.
public getType ( ) : Symfony\Component\PropertyInfo\Type | null
리턴 Symfony\Component\PropertyInfo\Type | null

isChildInherited() 공개 메소드

Is the property inherited from a child class?
public isChildInherited ( ) : string | null
리턴 string | null

isIdentifier() 공개 메소드

Is this attribute an identifier?
public isIdentifier ( ) : boolean | null
리턴 boolean | null

isReadable() 공개 메소드

Is readable?
public isReadable ( ) : boolean | null
리턴 boolean | null

isRequired() 공개 메소드

Is required?
public isRequired ( ) : boolean | null
리턴 boolean | null

isWritable() 공개 메소드

Is writable?
public isWritable ( ) : boolean | null
리턴 boolean | null

withAttributes() 공개 메소드

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

withChildInherited() 공개 메소드

Returns a new instance with the given child inherited class.
public withChildInherited ( string $childInherited ) : self
$childInherited string
리턴 self

withDescription() 공개 메소드

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

withIdentifier() 공개 메소드

Returns a new instance with the given identifier flag.
public withIdentifier ( boolean $identifier ) : self
$identifier boolean
리턴 self

withIri() 공개 메소드

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

withReadable() 공개 메소드

Returns a new instance of Metadata with the given readable flag.
public withReadable ( boolean $readable ) : self
$readable boolean
리턴 self

withRequired() 공개 메소드

Returns a new instance with the given required flag.
public withRequired ( boolean $required ) : self
$required boolean
리턴 self

withType() 공개 메소드

Returns a new instance with the given type.
public withType ( Symfony\Component\PropertyInfo\Type $type ) : self
$type Symfony\Component\PropertyInfo\Type
리턴 self

withWritable() 공개 메소드

Returns a new instance with the given writable flag.
public withWritable ( boolean $writable ) : self
$writable boolean
리턴 self