protected function verifySchema(array $schema)
    {
        $customTypes = isset($schema['customTypes']) ? $schema['customTypes'] : [];
        if (!is_array($customTypes)) {
            throw new Exception("Given value for key 'customTypes' is not an array.");
        }

        $properties = isset($schema['properties']) ? $schema['properties'] : null;
        if (!is_array($properties)) {
            throw new Exception("Missing valid value for 'properties' key within given schema.");
        }

        return [ $customTypes, $properties ];
    }
protected function verifySchema(array $schema)
    {
        $customTypes = isset($schema['customTypes']) ? $schema['customTypes'] : [];
        if (!is_array($customTypes)) {
            throw new Exception("Given value for key 'customTypes' is not an array.");
        }

        $properties = isset($schema['properties']) ? $schema['properties'] : null;
        if (!is_array($properties)) {
            throw new Exception("Missing valid value for 'properties' key within given schema.");
        }

        return [ $customTypes, $properties ];
    }
protected function verifySchema ( array $ schema ) { $ customTypes = isset ( $ schema [ 'customTypes' ] ) ? $ schema [ 'customTypes' ] : [ ] ; if ( ! is_array ( $ customTypes ) ) { throw new Exception ( "Given value for key 'customTypes' is not an array." ) ; } $ properties = isset ( $ schema [ 'properties' ] ) ? $ schema [ 'properties' ] : null ; if ( ! is_array ( $ properties ) ) { throw new Exception ( "Missing valid value for 'properties' key within given schema." ) ; } return [ $ customTypes , $ properties ] ; }
Ensures that the given schema has valid values. Will yield defaults where available.

@param mixed[] $schema

@return mixed[] Returns the given schema plus defaults where applicable.
Ensures that the given schema has valid values . Will yield defaults where available .