@@ -353,6 +353,8 @@ where
353353 ///
354354 /// This must be statically allocated, and is usually done through the [`macro@php_class`]
355355 /// macro.
356+ ///
357+ /// [`macro@php_class`]: crate::php_class
356358 fn get_metadata ( ) -> & ' static ClassMetadata < Self > ;
357359
358360 /// Attempts to retrieve a property from the class object.
@@ -369,7 +371,7 @@ where
369371 /// # Safety
370372 ///
371373 /// Caller must guarantee that the object the function is called on is immediately followed
372- /// by a [`zend_object`], which is true when the object was instantiated from [`ZendClassObject`] .
374+ /// by a [`zend_object`], which is true when the object was instantiated by PHP .
373375 unsafe fn get_property < ' a , T : FromZval < ' a > > ( & ' a self , name : & str ) -> Option < T > {
374376 let obj = ZendClassObject :: < Self > :: from_obj_ptr ( self ) ?;
375377 let zv = obj. std . get_property ( name) . ok ( ) ?;
@@ -391,7 +393,7 @@ where
391393 /// # Safety
392394 ///
393395 /// Caller must guarantee that the object the function is called on is immediately followed
394- /// by a [`zend_object`], which is true when the object was instantiated from [`ZendClassObject`] .
396+ /// by a [`zend_object`], which is true when the object was instantiated by PHP .
395397 unsafe fn set_property ( & mut self , name : & str , value : impl IntoZval ) -> Option < ( ) > {
396398 let obj = ZendClassObject :: < Self > :: from_obj_ptr ( self ) ?;
397399 obj. std . set_property ( name, value) . ok ( ) ?;
0 commit comments