Methods summary
public
StructureMetadata
|
#
setIdent( string $ident )
Set the metadata identifier.
Set the metadata identifier.
Parameters
- $ident
- The metadata identifier.
Returns
StructureMetadata Chainable
Throws
InvalidArgumentException If identifier is not a string.
|
public
string
|
#
ident( )
Retrieve the metadata identifier.
Retrieve the metadata identifier.
Returns
string
|
public
Charcoal\Model\ModelMetadata
|
#
setSources( array $sources )
Parameters
- $sources
- The available sources for this model.
Returns
|
public
array
|
|
public
Charcoal\Model\ModelMetadata
|
#
addSource( string $sourceIdent, mixed $source )
Parameters
- $sourceIdent
- The source identifier.
- $source
- The source data.
Returns
|
public
mixed
|
#
source( string $sourceIdent )
Parameters
- $sourceIdent
- The source identifier to get.
Returns
mixed
|
public
Charcoal\Model\ModelMetadata
|
#
setDefaultSource( string $defaultSource )
Parameters
- $defaultSource
- The default source identifier.
Returns
Throws
InvalidArgumentException If the argument is not a string.
|
public
string
|
|