setData()
setData(array $data) : \Charcoal\Model\DescribableInterface
Parameters
array | $data | The object data. |
Returns
\Charcoal\Model\DescribableInterface —Chainable
Defines a model having metadata that allows the customization of objects.
setData(array $data) : \Charcoal\Model\DescribableInterface
array | $data | The object data. |
Chainable
setMetadataLoader(\Charcoal\Model\Service\MetadataLoader $loader) : \Charcoal\Model\DescribableInterface
\Charcoal\Model\Service\MetadataLoader | $loader | The loader instance, used to load metadata. |
Chainable
setMetadata(array|\Charcoal\Model\MetadataInterface $metadata) : \Charcoal\Model\DescribableInterface
array|\Charcoal\Model\MetadataInterface | $metadata | The matadata. |
Chainable
metadata() : \Charcoal\Model\MetadataInterface
loadMetadata(string $metadataIdent = null) : \Charcoal\Model\MetadataInterface
string | $metadataIdent | The metadata ident to load. If null, generate from object. |
setMetadataIdent(string $metadataIdent) : \Charcoal\Model\DescribableInterface
string | $metadataIdent | Explicitely set the metadata ident. |
Chainable