public function packCompositions(SchemaBuilder $builder): array
    {
        $result = [];
        foreach ($this->getCompositions($builder) as $name => $composition) {
            $result[$name] = $composition->packSchema();
        }

        return $result;
    }
public function packCompositions(SchemaBuilder $builder): array
    {
        $result = [];
        foreach ($this->getCompositions($builder) as $name => $composition) {
            $result[$name] = $composition->packSchema();
        }

        return $result;
    }
public function packCompositions ( SchemaBuilder $ builder ) : array { $ result = [ ] ; foreach ( $ this -> getCompositions ( $ builder ) as $ name => $ composition ) { $ result [ $ name ] = $ composition -> packSchema ( ) ; } return $ result ; }
Pack compositions into simple array definition.

@param SchemaBuilder $builder

@return array

@throws SchemaException
Pack compositions into simple array definition .