mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 07:51:49 +01:00
Fill out inline documentation for magic methods added to the WP_Filesystem_Base
class in [28521].
See #22234 and #28885. Built from https://develop.svn.wordpress.org/trunk@29147 git-svn-id: http://core.svn.wordpress.org/trunk@28931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
915777e073
commit
e923e70d86
@ -40,9 +40,11 @@ class WP_Filesystem_Base {
|
||||
public $method = '';
|
||||
|
||||
/**
|
||||
* Make private properties readable for backwards compatibility
|
||||
* Make private properties readable for backwards compatibility.
|
||||
*
|
||||
* @since 4.0.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
@ -51,23 +53,27 @@ class WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 );
|
||||
@ -77,8 +83,9 @@ class WP_Filesystem_Base {
|
||||
* 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 );
|
||||
|
Loading…
Reference in New Issue
Block a user