| 1 | <?php |
||
| 14 | class Embed extends AbstractModel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Constructor. |
||
| 18 | * |
||
| 19 | * @param EmbedMetadata $metadata The internal embed metadata that supports this Embed. |
||
| 20 | * @param Store $store The model store service for handling persistence operations. |
||
| 21 | * @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. |
||
| 22 | */ |
||
| 23 | public function __construct(EmbedMetadata $metadata, Store $store, array $properties = null) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Gets the embed name. |
||
| 31 | * |
||
| 32 | * @api |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getName() |
||
| 39 | } |
||
| 40 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: