From f287dbbbde6ea317af4f28d2d2c9d55ed34b2f2e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 13 Jul 2014 23:34:15 +0000 Subject: [PATCH] Fill out inline documentation for magic methods added to the `WP_User_Query` class in [28528]. See #27881, #22234 and #28885. Built from https://develop.svn.wordpress.org/trunk@29140 git-svn-id: http://core.svn.wordpress.org/trunk@28924 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index d0e276b22f..dcdcfa962f 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -840,45 +840,52 @@ class WP_User_Query { } /** - * Make private properties readable for backwards compatibility + * Make private properties readable for backwards compatibility. * * @since 4.0.0 - * @param string $name - * @return mixed + * @access public + * + * @param string $name Property to get + * @return mixed Property. */ public function __get( $name ) { return $this->$name; } /** - * Make private properties setable for backwards compatibility + * Make private properties setable for backwards compatibility. * * @since 4.0.0 - * @param string $name - * @param string $value - * @return mixed + * @access public + * + * @param string $name Property to set. + * @param mixed $value Property value. + * @return mixed Newly-set property. */ public function __set( $name, $value ) { return $this->$name = $value; } /** - * Make private properties checkable for backwards compatibility + * Make private properties checkable for backwards compatibility. * * @since 4.0.0 - * @param string $name - * @return mixed + * @access public + * + * @param string $name Property to check if set. + * @return bool Whether the property is set. */ public function __isset( $name ) { return isset( $this->$name ); } /** - * Make private properties unsetable for backwards compatibility + * Make private properties unsetable for backwards compatibility. * * @since 4.0.0 - * @param string $name - * @return mixed + * @access public + * + * @param string $name Property to unset. */ public function __unset( $name ) { unset( $this->$name ); @@ -888,9 +895,11 @@ class WP_User_Query { * Make private/protected methods readable for backwards compatibility * * @since 4.0.0 - * @param string $name - * @param array $arguments - * @return mixed + * @access public + * + * @param callable $name Method to call. + * @param array $arguments Arguments to pass when calling. + * @return mixed|bool Return value of the callback, false otherwise. */ public function __call( $name, $arguments ) { return call_user_func_array( array( $this, $name ), $arguments );