src/Validator.php
public function addSchemaFromString($string)
    {
        $json = json_decode($string, true);
        if (is_null($json)) {
            trigger_error('not a valid json');
        }

        return $this->createValidation($json);
    }
public function addSchemaFromString($string)
    {
        $json = json_decode($string, true);
        if (is_null($json)) {
            trigger_error('not a valid json');
        }

        return $this->createValidation($json);
    }
public function addSchemaFromString ( $ string ) { $ json = json_decode ( $ string , true ) ; if ( is_null ( $ json ) ) { trigger_error ( 'not a valid json' ) ; } return $ this -> createValidation ( $ json ) ; }
This method creates a Validation object from string
this validation will not get a name or will be stored inside the validator

@param string $string

@return NestedValidation
This method creates a Validation object from string this validation will not get a name or will be stored inside the validator