| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Contract; |
| 4: | |
| 5: | /** |
| 6: | * @api |
| 7: | */ |
| 8: | interface HasConformity |
| 9: | { |
| 10: | /** |
| 11: | * Arrays may have different keys in different orders |
| 12: | */ |
| 13: | public const CONFORMITY_NONE = 0; |
| 14: | |
| 15: | /** |
| 16: | * Data arrays always have the same keys in the same order, but the given |
| 17: | * key map may have different keys in a different order |
| 18: | */ |
| 19: | public const CONFORMITY_PARTIAL = 1; |
| 20: | |
| 21: | /** |
| 22: | * Data arrays always have the same keys in the same order as each other and |
| 23: | * the given key map |
| 24: | */ |
| 25: | public const CONFORMITY_COMPLETE = 2; |
| 26: | } |
| 27: |