Make WordPress Core

Changeset 29144


Ignore:
Timestamp:
07/13/2014 11:41:50 PM (11 years ago)
Author:
DrewAPicture
Message:

Fill out inline documentation for magic methods added to the WP_Error class in [28511].

See #27881, #22234 and #28885.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-error.php

    r29046 r29144  
    6767
    6868    /**
    69      * Make private properties readable for backwards compatibility
    70      *
    71      * @since 4.0.0
    72      * @param string $name
    73      * @return mixed
     69     * Make private properties readable for backwards compatibility.
     70     *
     71     * @since 4.0.0
     72     * @access public
     73     *
     74     * @param string $name Property to get.
     75     * @return mixed Property.
    7476     */
    7577    public function __get( $name ) {
     
    7880
    7981    /**
    80      * Make private properties setable for backwards compatibility
    81      *
    82      * @since 4.0.0
    83      * @param string $name
    84      * @param string $value
    85      * @return mixed
     82     * Make private properties setable for backwards compatibility.
     83     *
     84     * @since 4.0.0
     85     * @access public
     86     *
     87     * @param string $name  Property to set.
     88     * @param mixed  $value Property value.
     89     * @return mixed Newly-set property.
    8690     */
    8791    public function __set( $name, $value ) {
     
    9094
    9195    /**
    92      * Make private properties checkable for backwards compatibility
    93      *
    94      * @since 4.0.0
    95      * @param string $name
    96      * @return mixed
     96     * Make private properties checkable for backwards compatibility.
     97     *
     98     * @since 4.0.0
     99     * @access public
     100     *
     101     * @param string $name Property to check if set.
     102     * @return bool Whether the property is set.
    97103     */
    98104    public function __isset( $name ) {
     
    101107
    102108    /**
    103      * Make private properties unsetable for backwards compatibility
    104      *
    105      * @since 4.0.0
    106      * @param string $name
    107      * @return mixed
     109     * Make private properties unsetable for backwards compatibility.
     110     *
     111     * @since 4.0.0
     112     * @access public
     113     *
     114     * @param string $name Property to unset.
    108115     */
    109116    public function __unset( $name ) {
Note: See TracChangeset for help on using the changeset viewer.