FormMetadata
Read onlyYes
FinalYes
FormMetadata - Lightweight DTO for form listings Contains only metadata, not the full form definition
Table of Contents
Properties
- $duplicateIdentifier : bool
- $fileUid : int|null
- $identifier : string
- $invalid : bool
- $name : string
- $persistenceIdentifier : string|null
- $prototypeName : string
- $readOnly : bool
- $referenceCount : int
- $removable : bool
- $storageType : string|null
- $type : string
Methods
- __construct() : mixed
- createFromYaml() : self
- createInvalid() : self
- fromArray() : self
- toArray() : array<string|int, mixed>
- withDuplicateIdentifier() : self
- withFileUid() : self
- withInvalid() : self
- withPersistenceIdentifier() : self
- withReadOnly() : self
- withReferenceCount() : self
- withRemovable() : self
- withStorageType() : self
Properties
$duplicateIdentifier
public
bool
$duplicateIdentifier
= false
$fileUid
public
int|null
$fileUid
= null
$identifier
public
string
$identifier
$invalid
public
bool
$invalid
= false
$name
public
string
$name
$persistenceIdentifier
public
string|null
$persistenceIdentifier
= null
$prototypeName
public
string
$prototypeName
$readOnly
public
bool
$readOnly
= false
$referenceCount
public
int
$referenceCount
= 0
$removable
public
bool
$removable
= true
$storageType
public
string|null
$storageType
= null
$type
public
string
$type
Methods
__construct()
public
__construct(string $identifier, string $type, string $name, string $prototypeName[, string|null $persistenceIdentifier = null ][, bool $invalid = false ][, bool $readOnly = false ][, bool $removable = true ][, string|null $storageType = null ][, bool $duplicateIdentifier = false ][, int|null $fileUid = null ][, int $referenceCount = 0 ]) : mixed
Parameters
- $identifier : string
- $type : string
- $name : string
- $prototypeName : string
- $persistenceIdentifier : string|null = null
- $invalid : bool = false
- $readOnly : bool = false
- $removable : bool = true
- $storageType : string|null = null
- $duplicateIdentifier : bool = false
- $fileUid : int|null = null
- $referenceCount : int = 0
createFromYaml()
public
static createFromYaml(array<string|int, mixed> $yamlData, string $persistenceIdentifier[, int|null $fileUid = null ]) : self
Parameters
- $yamlData : array<string|int, mixed>
- $persistenceIdentifier : string
- $fileUid : int|null = null
Return values
selfcreateInvalid()
public
static createInvalid(string $persistenceIdentifier, string $errorMessage) : self
Parameters
- $persistenceIdentifier : string
- $errorMessage : string
Return values
selffromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selftoArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>withDuplicateIdentifier()
public
withDuplicateIdentifier(bool $duplicateIdentifier) : self
Parameters
- $duplicateIdentifier : bool
Return values
selfwithFileUid()
public
withFileUid(int|null $fileUid) : self
Parameters
- $fileUid : int|null
Return values
selfwithInvalid()
public
withInvalid(bool $invalid) : self
Parameters
- $invalid : bool
Return values
selfwithPersistenceIdentifier()
public
withPersistenceIdentifier(string $persistenceIdentifier) : self
Parameters
- $persistenceIdentifier : string
Return values
selfwithReadOnly()
public
withReadOnly(bool $readOnly) : self
Parameters
- $readOnly : bool
Return values
selfwithReferenceCount()
public
withReferenceCount(int $referenceCount) : self
Parameters
- $referenceCount : int
Return values
selfwithRemovable()
public
withRemovable(bool $removable) : self
Parameters
- $removable : bool
Return values
selfwithStorageType()
public
withStorageType(string $storageType) : self
Parameters
- $storageType : string