Node.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\Contracts; |
| 4 | |
| 5 | use JsonSerializable; |
| 6 | |
| 7 | interface Node extends JsonSerializable { |
| 8 | |
| 9 | /** |
| 10 | * Get the field’s type. |
| 11 | * |
| 12 | * @return string |
| 13 | */ |
| 14 | public function getType(); |
| 15 | |
| 16 | /** |
| 17 | * Get the node’s name. |
| 18 | * |
| 19 | * @return string |
| 20 | */ |
| 21 | public function getName(); |
| 22 | |
| 23 | /** |
| 24 | * {@inheritdoc} |
| 25 | */ |
| 26 | public function jsonSerialize(); |
| 27 | } |
| 28 |