Fill out inline documentation for magic methods added to the WP_Object_Cache class in [28502], [28521], [28524].

See #27881, #22234 and #28885.


git-svn-id: https://develop.svn.wordpress.org/trunk@29146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes (DrewAPicture) 2014-07-13 23:45:11 +00:00
parent e9e796d230
commit d7ff96d00f

View File

@ -310,8 +310,10 @@ class WP_Object_Cache {
* Make private properties readable for backwards compatibility * Make private properties readable for backwards compatibility
* *
* @since 4.0.0 * @since 4.0.0
* @param string $name * @access public
* @return mixed *
* @param string $name Property to get.
* @return mixed Property.
*/ */
public function __get( $name ) { public function __get( $name ) {
return $this->$name; return $this->$name;
@ -321,9 +323,11 @@ class WP_Object_Cache {
* Make private properties setable for backwards compatibility * Make private properties setable for backwards compatibility
* *
* @since 4.0.0 * @since 4.0.0
* @param string $name * @access public
* @param string $value *
* @return mixed * @param string $name Property to set.
* @param mixed $value Property value.
* @return mixed Newly-set property.
*/ */
public function __set( $name, $value ) { public function __set( $name, $value ) {
return $this->$name = $value; return $this->$name = $value;
@ -333,8 +337,10 @@ class WP_Object_Cache {
* Make private properties checkable for backwards compatibility * Make private properties checkable for backwards compatibility
* *
* @since 4.0.0 * @since 4.0.0
* @param string $name * @access public
* @return mixed *
* @param string $name Property to check if set.
* @return bool Whether the property is set.
*/ */
public function __isset( $name ) { public function __isset( $name ) {
return isset( $this->$name ); return isset( $this->$name );
@ -344,8 +350,9 @@ class WP_Object_Cache {
* Make private properties unsetable for backwards compatibility * Make private properties unsetable for backwards compatibility
* *
* @since 4.0.0 * @since 4.0.0
* @param string $name * @access public
* @return mixed *
* @param string $name Property to unset.
*/ */
public function __unset( $name ) { public function __unset( $name ) {
unset( $this->$name ); unset( $this->$name );