[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/ -> ClassWithFinalMagicMethods.php (source)

   1  <?php
   2  /*
   3   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   4   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   5   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   6   * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
   7   * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   8   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   9   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  10   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  11   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  12   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  13   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14   *
  15   * This software consists of voluntary contributions made by many individuals
  16   * and is licensed under the MIT license.
  17   */
  18  
  19  namespace ProxyManagerTestAsset;
  20  
  21  /**
  22   * Base test class to play around with final pre-existing magic methods
  23   *
  24   * @author Jefersson Nathan <malukenho@phpse.net>
  25   * @license MIT
  26   */
  27  class ClassWithFinalMagicMethods
  28  {
  29      /**
  30       * {@inheritDoc}
  31       */
  32      final public function __construct()
  33      {
  34      }
  35  
  36      /**
  37       * {@inheritDoc}
  38       */
  39      final public function __set($name, $value)
  40      {
  41          return array($name => $value);
  42      }
  43  
  44      /**
  45       * {@inheritDoc}
  46       */
  47      final public function __get($name)
  48      {
  49          return $name;
  50      }
  51  
  52      /**
  53       * {@inheritDoc}
  54       */
  55      final public function __isset($name)
  56      {
  57          return (bool) $name;
  58      }
  59  
  60      /**
  61       * {@inheritDoc}
  62       */
  63      final public function __unset($name)
  64      {
  65          return (bool) $name;
  66      }
  67  
  68      /**
  69       * {@inheritDoc}
  70       */
  71      final public function __sleep()
  72      {
  73      }
  74  
  75      /**
  76       * {@inheritDoc}
  77       */
  78      final public function __wakeup()
  79      {
  80      }
  81  
  82      /**
  83       * {@inheritDoc}
  84       */
  85      final public function __clone()
  86      {
  87      }
  88  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1