@@ -235,7 +235,7 @@ fn find_global_class_entry_ptr(name: impl AsRef<str>) -> *mut zend_class_entry {
235235
236236/// The [StateClass] holds [zend_class_entry] and inner state, created by
237237/// [Module::add_class](crate::modules::Module::add_class) or
238- /// [ClassEntity::bind_class ].
238+ /// [ClassEntity::bound_class ].
239239///
240240/// When the class registered (module initialized), the [StateClass] will
241241/// be initialized, so you can use the [StateClass] to new stateful
@@ -436,7 +436,7 @@ pub struct ClassEntity<T: 'static> {
436436 parent : Option < StateClass < ( ) > > ,
437437 interfaces : Vec < Interface > ,
438438 constants : Vec < ConstantEntity > ,
439- bind_class : StateClass < T > ,
439+ bound_class : StateClass < T > ,
440440 state_cloner : Option < Rc < StateCloner > > ,
441441 _p : PhantomData < ( * mut ( ) , T ) > ,
442442}
@@ -474,7 +474,7 @@ impl<T: 'static> ClassEntity<T> {
474474 parent : None ,
475475 interfaces : Vec :: new ( ) ,
476476 constants : Vec :: new ( ) ,
477- bind_class : StateClass :: null ( ) ,
477+ bound_class : StateClass :: null ( ) ,
478478 state_cloner : None ,
479479 _p : PhantomData ,
480480 }
@@ -673,7 +673,7 @@ impl<T: 'static> ClassEntity<T> {
673673 parent. cast ( ) ,
674674 ) ;
675675
676- self . bind_class . bind ( class_ce) ;
676+ self . bound_class . bind ( class_ce) ;
677677
678678 for interface in & self . interfaces {
679679 let interface_ce = interface. as_class_entry ( ) . as_ptr ( ) ;
@@ -761,7 +761,7 @@ impl<T: 'static> ClassEntity<T> {
761761 ///
762762 /// pub fn make_foo_class() -> ClassEntity<()> {
763763 /// let mut class = ClassEntity::<()>::new_with_default_state_constructor("Foo");
764- /// let foo_class = class.bind_class ();
764+ /// let foo_class = class.bound_class ();
765765 /// class.add_static_method("newInstance", Visibility::Public, move |_| {
766766 /// let mut object = foo_class.init_object()?;
767767 /// Ok::<_, phper::Error>(object)
@@ -770,8 +770,8 @@ impl<T: 'static> ClassEntity<T> {
770770 /// }
771771 /// ```
772772 #[ 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 ( )
775775 }
776776}
777777
@@ -794,7 +794,7 @@ pub struct InterfaceEntity {
794794 method_entities : Vec < MethodEntity > ,
795795 constants : Vec < ConstantEntity > ,
796796 extends : Vec < Box < dyn Fn ( ) -> & ' static ClassEntry > > ,
797- bind_interface : Interface ,
797+ bound_interface : Interface ,
798798}
799799
800800impl InterfaceEntity {
@@ -805,7 +805,7 @@ impl InterfaceEntity {
805805 method_entities : Vec :: new ( ) ,
806806 constants : Vec :: new ( ) ,
807807 extends : Vec :: new ( ) ,
808- bind_interface : Interface :: null ( ) ,
808+ bound_interface : Interface :: null ( ) ,
809809 }
810810 }
811811
@@ -858,7 +858,7 @@ impl InterfaceEntity {
858858 null_mut ( ) ,
859859 ) ;
860860
861- self . bind_interface . bind ( class_ce) ;
861+ self . bound_interface . bind ( class_ce) ;
862862
863863 for interface in & self . extends {
864864 let interface_ce = interface ( ) . as_ptr ( ) ;
@@ -889,8 +889,8 @@ impl InterfaceEntity {
889889
890890 /// Get the bound interface.
891891 #[ 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 ( )
894894 }
895895}
896896
0 commit comments