PHP Class ApiPlatform\Core\Metadata\Property\PropertyMetadata

Author: Kévin Dunglas ([email protected])
Afficher le fichier Open project: api-platform/core Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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() public méthode

Gets attributes.
public getAttributes ( ) : array | null
Résultat array | null

getDescription() public méthode

Gets description.
public getDescription ( ) : string | null
Résultat string | null

getIri() public méthode

Gets IRI of this property.
public getIri ( ) : string | null
Résultat string | null

getType() public méthode

Gets type.
public getType ( ) : Symfony\Component\PropertyInfo\Type | null
Résultat Symfony\Component\PropertyInfo\Type | null

isChildInherited() public méthode

Is the property inherited from a child class?
public isChildInherited ( ) : string | null
Résultat string | null

isIdentifier() public méthode

Is this attribute an identifier?
public isIdentifier ( ) : boolean | null
Résultat boolean | null

isReadable() public méthode

Is readable?
public isReadable ( ) : boolean | null
Résultat boolean | null

isRequired() public méthode

Is required?
public isRequired ( ) : boolean | null
Résultat boolean | null

isWritable() public méthode

Is writable?
public isWritable ( ) : boolean | null
Résultat boolean | null

withAttributes() public méthode

Returns a new instance with the given attribute.
public withAttributes ( array $attributes ) : self
$attributes array
Résultat self

withChildInherited() public méthode

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

withDescription() public méthode

Returns a new instance with the given description.
public withDescription ( string $description ) : self
$description string
Résultat self

withIdentifier() public méthode

Returns a new instance with the given identifier flag.
public withIdentifier ( boolean $identifier ) : self
$identifier boolean
Résultat self

withIri() public méthode

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

withReadable() public méthode

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

withRequired() public méthode

Returns a new instance with the given required flag.
public withRequired ( boolean $required ) : self
$required boolean
Résultat self

withType() public méthode

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

withWritable() public méthode

Returns a new instance with the given writable flag.
public withWritable ( boolean $writable ) : self
$writable boolean
Résultat self