src/Validators/MiscValidators/PropertyNamesValidator.php
public function validate($subject): bool
    {
        $propertyNames = \array_keys($subject);
        foreach ($propertyNames as $propertyName) {
            $nodeValidator = new NodeValidator($this->schema['propertyNames'], $this->rootSchema);
            if (!$nodeValidator->validate($propertyName)) {
                return false;
            }
        }
        return true;
    }
public function validate($subject): bool
    {
        $propertyNames = \array_keys($subject);
        foreach ($propertyNames as $propertyName) {
            $nodeValidator = new NodeValidator($this->schema['propertyNames'], $this->rootSchema);
            if (!$nodeValidator->validate($propertyName)) {
                return false;
            }
        }
        return true;
    }
public function validate ( $ subject ) : bool { $ propertyNames = \ array_keys ( $ subject ) ; foreach ( $ propertyNames as $ propertyName ) { $ nodeValidator = new NodeValidator ( $ this -> schema [ 'propertyNames' ] , $ this -> rootSchema ) ; if ( ! $ nodeValidator -> validate ( $ propertyName ) ) { return false ; } } return true ; }
Validates subject against propertyNames

@param $subject
@return bool
Validates subject against propertyNames