@@ 782-790 (lines=9) @@ | ||
779 | } |
|
780 | } |
|
781 | ||
782 | public static function keyExists($array, $key, $message = '') |
|
783 | { |
|
784 | if (!array_key_exists($key, $array)) { |
|
785 | static::reportInvalidArgument(sprintf( |
|
786 | $message ?: 'Expected the key %s to exist.', |
|
787 | static::valueToString($key) |
|
788 | )); |
|
789 | } |
|
790 | } |
|
791 | ||
792 | public static function keyNotExists($array, $key, $message = '') |
|
793 | { |
|
@@ 792-800 (lines=9) @@ | ||
789 | } |
|
790 | } |
|
791 | ||
792 | public static function keyNotExists($array, $key, $message = '') |
|
793 | { |
|
794 | if (array_key_exists($key, $array)) { |
|
795 | static::reportInvalidArgument(sprintf( |
|
796 | $message ?: 'Expected the key %s to not exist.', |
|
797 | static::valueToString($key) |
|
798 | )); |
|
799 | } |
|
800 | } |
|
801 | ||
802 | public static function uuid($value, $message = '') |
|
803 | { |