| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Contract\Core\Entity; |
| 4: | |
| 5: | /** |
| 6: | * @api |
| 7: | */ |
| 8: | interface Relatable |
| 9: | { |
| 10: | public const ONE_TO_ONE = 0; |
| 11: | public const ONE_TO_MANY = 1; |
| 12: | |
| 13: | /** |
| 14: | * Get an array that maps properties to relationships |
| 15: | * |
| 16: | * @return array<string,non-empty-array<Relatable::*,class-string<Relatable>>> |
| 17: | */ |
| 18: | public static function getRelationships(): array; |
| 19: | } |
| 20: |