@@ -88,43 +88,23 @@ impl ToTokens for InterfaceData<'_> {
88
88
}
89
89
90
90
fn constructor( ) -> Option <:: ext_php_rs:: class:: ConstructorMeta <Self >> {
91
- None
91
+ use :: ext_php_rs:: internal:: class:: PhpClassImpl ;
92
+ :: ext_php_rs:: internal:: class:: PhpClassImplCollector :: <Self >:: default ( ) . get_constructor( )
92
93
}
93
94
94
95
fn constants( ) -> & ' static [ (
95
96
& ' static str ,
96
97
& ' static dyn ext_php_rs:: convert:: IntoZvalDyn ,
97
98
ext_php_rs:: describe:: DocComments ,
98
99
) ] {
99
- use :: ext_php_rs:: internal:: class:: PhpClassImpl ;
100
- :: ext_php_rs:: internal:: class:: PhpClassImplCollector :: <Self >:: default ( ) . get_constants( )
100
+ & [ #( #constants) , * ]
101
101
}
102
102
103
103
fn get_properties<' a>( ) -> :: std:: collections:: HashMap <& ' static str , :: ext_php_rs:: internal:: property:: PropertyInfo <' a, Self >> {
104
104
panic!( "Non supported for Interface" ) ;
105
105
}
106
106
}
107
107
108
- impl :: ext_php_rs:: internal:: class:: PhpClassImpl <#path> for :: ext_php_rs:: internal:: class:: PhpClassImplCollector <#path> {
109
- fn get_methods( self ) -> :: std:: vec:: Vec <
110
- ( :: ext_php_rs:: builders:: FunctionBuilder <' static >, :: ext_php_rs:: flags:: MethodFlags )
111
- > {
112
- panic!( "Non supported for Interface" ) ;
113
- }
114
-
115
- fn get_method_props<' a>( self ) -> :: std:: collections:: HashMap <& ' static str , :: ext_php_rs:: props:: Property <' a, #path>> {
116
- panic!( "Non supported for Interface" ) ;
117
- }
118
-
119
- fn get_constructor( self ) -> :: std:: option:: Option <:: ext_php_rs:: class:: ConstructorMeta <#path>> {
120
- None
121
- }
122
-
123
- fn get_constants( self ) -> & ' static [ ( & ' static str , & ' static dyn :: ext_php_rs:: convert:: IntoZvalDyn , & ' static [ & ' static str ] ) ] {
124
- & [ #( #constants) , * ]
125
- }
126
- }
127
-
128
108
impl <' a> :: ext_php_rs:: convert:: FromZendObject <' a> for & ' a #interface_name {
129
109
#[ inline]
130
110
fn from_zend_object(
0 commit comments