Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Hyde\Framework\Features\Metadata; |
| 6 | |
| 7 | use Stringable; |
| 8 | |
| 9 | /** |
| 10 | * The methods the object representations for Metadata element classes must implement. |
| 11 | */ |
| 12 | interface MetadataElementContract extends Stringable |
| 13 | { |
| 14 | /** |
| 15 | * @return string The HTML representation of the element. |
| 16 | * |
| 17 | * @example <meta name="description" content="This is a description."> |
| 18 | */ |
| 19 | public function __toString(): string; |
| 20 | |
| 21 | /** |
| 22 | * @return string The unique key for the element. If multiple elements have the same key, only the first one will be used. |
| 23 | * |
| 24 | * @example description |
| 25 | */ |
| 26 | public function uniqueKey(): string; |
| 27 | } |