From 844efdf3983dfc3020b0eb0c8dd7ff3c8f6fefe2 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Sun, 13 Jul 2014 23:34:01 +0000 Subject: [PATCH] Fill out inline documentation for magic methods added to the `WP_User_Query` class in [28528]. See #27881, #22234 and #28885. git-svn-id: https://develop.svn.wordpress.org/trunk@29140 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 41 ++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index d0e276b22f..dcdcfa962f 100644 --- a/src/wp-includes/user.php +++ b/src/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 );