LdapTools\Schema\Parser\SchemaYamlParser::updateObjectArray PHP Method

updateObjectArray() protected method

Update the object in the schema array in case it extended a different object type.
protected updateObjectArray ( string $schemaName, array $schemaObject )
$schemaName string
$schemaObject array
    protected function updateObjectArray($schemaName, $schemaObject)
    {
        foreach ($this->schemas[$this->schemaFolder][$schemaName]['objects'] as $name => $value) {
            if (array_key_exists('type', $value) && $value['type'] == $schemaObject['type']) {
                $this->schemas[$this->schemaFolder][$schemaName]['objects'][$name] = $schemaObject;
            }
        }
    }