public function validateArrayWithAllOrNone($attribute, $value, $parameters)
    {
        $missing = 0;

        foreach ($parameters as $key) {
            if (!isset($value[$key])) {
                ++$missing;
            }
        }

        return $missing === count($parameters) || $missing === 0;
    }
public function validateArrayWithAllOrNone($attribute, $value, $parameters)
    {
        $missing = 0;

        foreach ($parameters as $key) {
            if (!isset($value[$key])) {
                ++$missing;
            }
        }

        return $missing === count($parameters) || $missing === 0;
    }
public function validateArrayWithAllOrNone ( $ attribute , $ value , $ parameters ) { $ missing = 0 ; foreach ( $ parameters as $ key ) { if ( ! isset ( $ value [ $ key ] ) ) { ++ $ missing ; } } return $ missing === count ( $ parameters ) || $ missing === 0 ; }
Validates that an item is an array.
Validates that an item is an array .