libSmalldb
v2.0.2
|
Public Member Functions | |
__construct (string $name, ?string $type, ?bool $isNullable, array $extensions=[]) | |
PropertyDefinition constructor. More... | |
getName () | |
getType () | |
isNullable () | |
jsonSerialize () | |
hasExtension (string $extensionClassName) | |
Return true if an extension of given type is defined for this element. More... | |
getExtension (string $extensionClassName) | |
Get an extension of given type. More... | |
findExtension (string $extensionClassName) | |
Get an extension of given type. More... | |
getExtensionClassNames () | |
Get a list of existing extensions. More... | |
__construct | ( | string | $name, |
?string | $type, | ||
?bool | $isNullable, | ||
array | $extensions = [] |
||
) |
PropertyDefinition constructor.
string | $name | |
string | null | $type | |
bool | null | $isNullable | |
ExtensionInterface[] | $extensions |
getName | ( | ) |
getType | ( | ) |
isNullable | ( | ) |
jsonSerialize | ( | ) |
|
inherited |
Return true if an extension of given type is defined for this element.
|
inherited |
Get an extension of given type.
Throws UndefinedExtensionException if the extension is not found.
It would be nice to write getExtension<T>(): T ...
class-string<ExtensionInterface> | $extensionClassName |
|
inherited |
Get an extension of given type.
Just like getExtension(), but returns null if the extension is not found.
It would be nice to write getExtension<T>(): T ...
class-string<ExtensionInterface> | $extensionClassName |
|
inherited |
Get a list of existing extensions.