@@ -235,7 +235,7 @@ fn find_global_class_entry_ptr(name: impl AsRef<str>) -> *mut zend_class_entry {
235
235
236
236
/// The [StateClass] holds [zend_class_entry] and inner state, created by
237
237
/// [Module::add_class](crate::modules::Module::add_class) or
238
- /// [ClassEntity::bind_class ].
238
+ /// [ClassEntity::bound_class ].
239
239
///
240
240
/// When the class registered (module initialized), the [StateClass] will
241
241
/// be initialized, so you can use the [StateClass] to new stateful
@@ -436,7 +436,7 @@ pub struct ClassEntity<T: 'static> {
436
436
parent : Option < StateClass < ( ) > > ,
437
437
interfaces : Vec < Interface > ,
438
438
constants : Vec < ConstantEntity > ,
439
- bind_class : StateClass < T > ,
439
+ bound_class : StateClass < T > ,
440
440
state_cloner : Option < Rc < StateCloner > > ,
441
441
_p : PhantomData < ( * mut ( ) , T ) > ,
442
442
}
@@ -474,7 +474,7 @@ impl<T: 'static> ClassEntity<T> {
474
474
parent : None ,
475
475
interfaces : Vec :: new ( ) ,
476
476
constants : Vec :: new ( ) ,
477
- bind_class : StateClass :: null ( ) ,
477
+ bound_class : StateClass :: null ( ) ,
478
478
state_cloner : None ,
479
479
_p : PhantomData ,
480
480
}
@@ -673,7 +673,7 @@ impl<T: 'static> ClassEntity<T> {
673
673
parent. cast ( ) ,
674
674
) ;
675
675
676
- self . bind_class . bind ( class_ce) ;
676
+ self . bound_class . bind ( class_ce) ;
677
677
678
678
for interface in & self . interfaces {
679
679
let interface_ce = interface. as_class_entry ( ) . as_ptr ( ) ;
@@ -761,7 +761,7 @@ impl<T: 'static> ClassEntity<T> {
761
761
///
762
762
/// pub fn make_foo_class() -> ClassEntity<()> {
763
763
/// let mut class = ClassEntity::<()>::new_with_default_state_constructor("Foo");
764
- /// let foo_class = class.bind_class ();
764
+ /// let foo_class = class.bound_class ();
765
765
/// class.add_static_method("newInstance", Visibility::Public, move |_| {
766
766
/// let mut object = foo_class.init_object()?;
767
767
/// Ok::<_, phper::Error>(object)
@@ -770,8 +770,8 @@ impl<T: 'static> ClassEntity<T> {
770
770
/// }
771
771
/// ```
772
772
#[ inline]
773
- pub fn bind_class ( & self ) -> StateClass < T > {
774
- self . bind_class . clone ( )
773
+ pub fn bound_class ( & self ) -> StateClass < T > {
774
+ self . bound_class . clone ( )
775
775
}
776
776
}
777
777
@@ -794,7 +794,7 @@ pub struct InterfaceEntity {
794
794
method_entities : Vec < MethodEntity > ,
795
795
constants : Vec < ConstantEntity > ,
796
796
extends : Vec < Box < dyn Fn ( ) -> & ' static ClassEntry > > ,
797
- bind_interface : Interface ,
797
+ bound_interface : Interface ,
798
798
}
799
799
800
800
impl InterfaceEntity {
@@ -805,7 +805,7 @@ impl InterfaceEntity {
805
805
method_entities : Vec :: new ( ) ,
806
806
constants : Vec :: new ( ) ,
807
807
extends : Vec :: new ( ) ,
808
- bind_interface : Interface :: null ( ) ,
808
+ bound_interface : Interface :: null ( ) ,
809
809
}
810
810
}
811
811
@@ -858,7 +858,7 @@ impl InterfaceEntity {
858
858
null_mut ( ) ,
859
859
) ;
860
860
861
- self . bind_interface . bind ( class_ce) ;
861
+ self . bound_interface . bind ( class_ce) ;
862
862
863
863
for interface in & self . extends {
864
864
let interface_ce = interface ( ) . as_ptr ( ) ;
@@ -889,8 +889,8 @@ impl InterfaceEntity {
889
889
890
890
/// Get the bound interface.
891
891
#[ inline]
892
- pub fn bind_interface ( & self ) -> Interface {
893
- self . bind_interface . clone ( )
892
+ pub fn bound_interface ( & self ) -> Interface {
893
+ self . bound_interface . clone ( )
894
894
}
895
895
}
896
896
0 commit comments