@@ -240,6 +240,47 @@ func (g *GitHubConfig) String() string {
240240 return fmt .Sprintf ("%#v" , g )
241241}
242242
243+ type ComposerPublishInfo struct {
244+ PackageName string `json:"packageName" url:"packageName"`
245+
246+ extraProperties map [string ]interface {}
247+ _rawJSON json.RawMessage
248+ }
249+
250+ func (c * ComposerPublishInfo ) GetExtraProperties () map [string ]interface {} {
251+ return c .extraProperties
252+ }
253+
254+ func (c * ComposerPublishInfo ) UnmarshalJSON (data []byte ) error {
255+ type unmarshaler ComposerPublishInfo
256+ var value unmarshaler
257+ if err := json .Unmarshal (data , & value ); err != nil {
258+ return err
259+ }
260+ * c = ComposerPublishInfo (value )
261+
262+ extraProperties , err := core .ExtractExtraProperties (data , * c )
263+ if err != nil {
264+ return err
265+ }
266+ c .extraProperties = extraProperties
267+
268+ c ._rawJSON = json .RawMessage (data )
269+ return nil
270+ }
271+
272+ func (c * ComposerPublishInfo ) String () string {
273+ if len (c ._rawJSON ) > 0 {
274+ if value , err := core .StringifyJSON (c ._rawJSON ); err == nil {
275+ return value
276+ }
277+ }
278+ if value , err := core .StringifyJSON (c ); err == nil {
279+ return value
280+ }
281+ return fmt .Sprintf ("%#v" , c )
282+ }
283+
243284type CsharpInfo struct {
244285 PublishInfo * NugetPublishInfo `json:"publishInfo,omitempty" url:"publishInfo,omitempty"`
245286
@@ -461,6 +502,7 @@ type LanguageInfo struct {
461502 Java * JavaInfo
462503 Ruby * RubyInfo
463504 Csharp * CsharpInfo
505+ Php * PhpInfo
464506}
465507
466508func (l * LanguageInfo ) UnmarshalJSON (data []byte ) error {
@@ -508,6 +550,12 @@ func (l *LanguageInfo) UnmarshalJSON(data []byte) error {
508550 return err
509551 }
510552 l .Csharp = value
553+ case "php" :
554+ value := new (PhpInfo )
555+ if err := json .Unmarshal (data , & value ); err != nil {
556+ return err
557+ }
558+ l .Php = value
511559 }
512560 return nil
513561}
@@ -531,6 +579,9 @@ func (l LanguageInfo) MarshalJSON() ([]byte, error) {
531579 if l .Csharp != nil {
532580 return core .MarshalJSONWithExtraProperty (l .Csharp , "type" , "csharp" )
533581 }
582+ if l .Php != nil {
583+ return core .MarshalJSONWithExtraProperty (l .Php , "type" , "php" )
584+ }
534585 return nil , fmt .Errorf ("type %T does not define a non-empty union type" , l )
535586}
536587
@@ -541,6 +592,7 @@ type LanguageInfoVisitor interface {
541592 VisitJava (* JavaInfo ) error
542593 VisitRuby (* RubyInfo ) error
543594 VisitCsharp (* CsharpInfo ) error
595+ VisitPhp (* PhpInfo ) error
544596}
545597
546598func (l * LanguageInfo ) Accept (visitor LanguageInfoVisitor ) error {
@@ -562,6 +614,9 @@ func (l *LanguageInfo) Accept(visitor LanguageInfoVisitor) error {
562614 if l .Csharp != nil {
563615 return visitor .VisitCsharp (l .Csharp )
564616 }
617+ if l .Php != nil {
618+ return visitor .VisitPhp (l .Php )
619+ }
565620 return fmt .Errorf ("type %T does not define a non-empty union type" , l )
566621}
567622
@@ -690,6 +745,47 @@ func (n *NugetPublishInfo) String() string {
690745 return fmt .Sprintf ("%#v" , n )
691746}
692747
748+ type PhpInfo struct {
749+ PublishInfo * ComposerPublishInfo `json:"publishInfo,omitempty" url:"publishInfo,omitempty"`
750+
751+ extraProperties map [string ]interface {}
752+ _rawJSON json.RawMessage
753+ }
754+
755+ func (p * PhpInfo ) GetExtraProperties () map [string ]interface {} {
756+ return p .extraProperties
757+ }
758+
759+ func (p * PhpInfo ) UnmarshalJSON (data []byte ) error {
760+ type unmarshaler PhpInfo
761+ var value unmarshaler
762+ if err := json .Unmarshal (data , & value ); err != nil {
763+ return err
764+ }
765+ * p = PhpInfo (value )
766+
767+ extraProperties , err := core .ExtractExtraProperties (data , * p )
768+ if err != nil {
769+ return err
770+ }
771+ p .extraProperties = extraProperties
772+
773+ p ._rawJSON = json .RawMessage (data )
774+ return nil
775+ }
776+
777+ func (p * PhpInfo ) String () string {
778+ if len (p ._rawJSON ) > 0 {
779+ if value , err := core .StringifyJSON (p ._rawJSON ); err == nil {
780+ return value
781+ }
782+ }
783+ if value , err := core .StringifyJSON (p ); err == nil {
784+ return value
785+ }
786+ return fmt .Sprintf ("%#v" , p )
787+ }
788+
693789type PypiPublishInfo struct {
694790 PackageName string `json:"packageName" url:"packageName"`
695791
0 commit comments