lib/API/Values/ParameterStructTrait.php
private function fillDefault(ParameterDefinitionCollectionInterface $definitionCollection): void
    {
        foreach ($definitionCollection->getParameterDefinitions() as $name => $definition) {
            $this->setParameterValue($name, $definition->getDefaultValue());

            if ($definition instanceof CompoundParameterDefinition) {
                $this->fillDefault($definition);
            }
        }
    }
private function fillDefault(ParameterDefinitionCollectionInterface $definitionCollection): void
    {
        foreach ($definitionCollection->getParameterDefinitions() as $name => $definition) {
            $this->setParameterValue($name, $definition->getDefaultValue());

            if ($definition instanceof CompoundParameterDefinition) {
                $this->fillDefault($definition);
            }
        }
    }
private function fillDefault ( ParameterDefinitionCollectionInterface $ definitionCollection ) : void { foreach ( $ definitionCollection -> getParameterDefinitions ( ) as $ name => $ definition ) { $ this -> setParameterValue ( $ name , $ definition -> getDefaultValue ( ) ) ; if ( $ definition instanceof CompoundParameterDefinition ) { $ this -> fillDefault ( $ definition ) ; } } }
Fills the struct with the default parameter values as defined in provided
parameter definition collection.
Fills the struct with the default parameter values as defined in provided parameter definition collection .