src/Factory/FabricateAbstractFactory.php
private function applyNestedDefinitions($definitions, $record, $world)
    {
        foreach ($definitions as $definition) {
            $result = $definition->run($record, $world);
            $record = $this->applyTraits($record, $world);
            $record = array_merge($record, $result);
        }
        return $record;
    }
private function applyNestedDefinitions($definitions, $record, $world)
    {
        foreach ($definitions as $definition) {
            $result = $definition->run($record, $world);
            $record = $this->applyTraits($record, $world);
            $record = array_merge($record, $result);
        }
        return $record;
    }
private function applyNestedDefinitions ( $ definitions , $ record , $ world ) { foreach ( $ definitions as $ definition ) { $ result = $ definition -> run ( $ record , $ world ) ; $ record = $ this -> applyTraits ( $ record , $ world ) ; $ record = array_merge ( $ record , $ result ) ; } return $ record ; }
Apply nested definitions

@param array $definitions array of FabricateDefinition
@param array $record data
@param FabricateContext $world context
@return array record applied nested definitions
Apply nested definitions