Fill out inline documentation for magic methods added to the `Custom_Image_Header` class in [28481], [28521], and [28524].
See #22234 and #28885. Built from https://develop.svn.wordpress.org/trunk@29150 git-svn-id: http://core.svn.wordpress.org/trunk@28934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5752274fc2
commit
d68725af80
|
@ -84,8 +84,10 @@ class Custom_Image_Header {
|
||||||
* 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;
|
||||||
|
@ -95,9 +97,11 @@ class Custom_Image_Header {
|
||||||
* 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;
|
||||||
|
@ -107,8 +111,10 @@ class Custom_Image_Header {
|
||||||
* 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 );
|
||||||
|
@ -118,8 +124,9 @@ class Custom_Image_Header {
|
||||||
* 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 );
|
||||||
|
|
Loading…
Reference in New Issue