From 71eb75a1599be8b456b2040f7ac2235c0e6b217e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 13 Jul 2014 23:39:14 +0000 Subject: [PATCH] Fill out inline documentation for magic methods added to the `WP_MatchesMapRegex` class in [28516]. See #27881, #22234 and #28885. Built from https://develop.svn.wordpress.org/trunk@29142 git-svn-id: http://core.svn.wordpress.org/trunk@28926 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp.php | 43 ++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index 17a3be3066..f37d65e9ba 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -663,57 +663,66 @@ class WP_MatchesMapRegex { public $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; // magic number /** - * 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 ); } /** - * Make private/protected methods readable for backwards compatibility + * 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 );