public function getConstraints($version)
    {
        if (!isset($this->constraints[$version])) {
            $this->constraints[$version] = $this->createConstraints($version);
        }

        return $this->constraints[$version];
    }
public function getConstraints($version)
    {
        if (!isset($this->constraints[$version])) {
            $this->constraints[$version] = $this->createConstraints($version);
        }

        return $this->constraints[$version];
    }
public function getConstraints ( $ version ) { if ( ! isset ( $ this -> constraints [ $ version ] ) ) { $ this -> constraints [ $ version ] = $ this -> createConstraints ( $ version ) ; } return $ this -> constraints [ $ version ] ; }
Returns the constraints associated with a given JSON Schema version.

@param string $version

@return Constraint[]

@throws UnsupportedVersionException if the version is not supported
Returns the constraints associated with a given JSON Schema version .