public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
    {
        // check array
        if ($this->getTypeCheck()->isArray($value)) {
            $this->checkArray($value, $schema, $path, $i);
        }

        // check object
        if (LooseTypeCheck::isObject($value)) { // object processing should always be run on assoc arrays,
                                                // so use LooseTypeCheck here even if CHECK_MODE_TYPE_CAST
                                                // is not set (i.e. don't use $this->getTypeCheck() here).
            $this->checkObject(
                $value,
                $schema,
                $path,
                isset($schema->properties) ? $schema->properties : null,
                isset($schema->additionalProperties) ? $schema->additionalProperties : null,
                isset($schema->patternProperties) ? $schema->patternProperties : null,
                $this->appliedDefaults
            );
        }

        // check string
        if (is_string($value)) {
            $this->checkString($value, $schema, $path, $i);
        }

        // check numeric
        if (is_numeric($value)) {
            $this->checkNumber($value, $schema, $path, $i);
        }

        // check enum
        if (isset($schema->enum)) {
            $this->checkEnum($value, $schema, $path, $i);
        }

        // check const
        if (isset($schema->const)) {
            $this->checkConst($value, $schema, $path, $i);
        }
    }
public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
    {
        // check array
        if ($this->getTypeCheck()->isArray($value)) {
            $this->checkArray($value, $schema, $path, $i);
        }

        // check object
        if (LooseTypeCheck::isObject($value)) { // object processing should always be run on assoc arrays,
                                                // so use LooseTypeCheck here even if CHECK_MODE_TYPE_CAST
                                                // is not set (i.e. don't use $this->getTypeCheck() here).
            $this->checkObject(
                $value,
                $schema,
                $path,
                isset($schema->properties) ? $schema->properties : null,
                isset($schema->additionalProperties) ? $schema->additionalProperties : null,
                isset($schema->patternProperties) ? $schema->patternProperties : null,
                $this->appliedDefaults
            );
        }

        // check string
        if (is_string($value)) {
            $this->checkString($value, $schema, $path, $i);
        }

        // check numeric
        if (is_numeric($value)) {
            $this->checkNumber($value, $schema, $path, $i);
        }

        // check enum
        if (isset($schema->enum)) {
            $this->checkEnum($value, $schema, $path, $i);
        }

        // check const
        if (isset($schema->const)) {
            $this->checkConst($value, $schema, $path, $i);
        }
    }
public function validateTypes ( & $ value , $ schema = null , JsonPointer $ path , $ i = null ) { // check array if ( $ this -> getTypeCheck ( ) -> isArray ( $ value ) ) { $ this -> checkArray ( $ value , $ schema , $ path , $ i ) ; } // check object if ( LooseTypeCheck :: isObject ( $ value ) ) { // object processing should always be run on assoc arrays, // so use LooseTypeCheck here even if CHECK_MODE_TYPE_CAST // is not set (i.e. don't use $this->getTypeCheck() here). $ this -> checkObject ( $ value , $ schema , $ path , isset ( $ schema -> properties ) ? $ schema -> properties : null , isset ( $ schema -> additionalProperties ) ? $ schema -> additionalProperties : null , isset ( $ schema -> patternProperties ) ? $ schema -> patternProperties : null , $ this -> appliedDefaults ) ; } // check string if ( is_string ( $ value ) ) { $ this -> checkString ( $ value , $ schema , $ path , $ i ) ; } // check numeric if ( is_numeric ( $ value ) ) { $ this -> checkNumber ( $ value , $ schema , $ path , $ i ) ; } // check enum if ( isset ( $ schema -> enum ) ) { $ this -> checkEnum ( $ value , $ schema , $ path , $ i ) ; } // check const if ( isset ( $ schema -> const ) ) { $ this -> checkConst ( $ value , $ schema , $ path , $ i ) ; } }
Validates the value against the types

@param mixed       $value
@param mixed       $schema
@param JsonPointer $path
@param string      $i
Validates the value against the types