| 1 | <?php |
||
| 13 | class Embed extends AbstractModel |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The metadata that defines this Model. |
||
| 17 | * |
||
| 18 | * @var EmbedMetadata |
||
| 19 | */ |
||
| 20 | protected $metadata; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Constructor. |
||
| 24 | * |
||
| 25 | * @param EmbedMetadata $metadata The internal embed metadata that supports this Embed. |
||
| 26 | * @param Store $store The model store service for handling persistence operations. |
||
| 27 | * @param array|null $properties The embed's properties from the db layer to init the embed with. New embeds will constructed with a null record. |
||
| 28 | */ |
||
| 29 | public function __construct(EmbedMetadata $metadata, Store $store, array $properties = null) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getCompositeKey() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Gets the metadata for this model. |
||
| 45 | * |
||
| 46 | * @api |
||
| 47 | * @return EmbedMetadata |
||
| 48 | */ |
||
| 49 | public function getMetadata() |
||
| 53 | |||
| 54 | |||
| 55 | /** |
||
| 56 | * Gets the embed name. |
||
| 57 | * |
||
| 58 | * @api |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getName() |
||
| 65 | } |
||
| 66 |