[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/ -> BaseClass.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 with various intercepted properties
  23   *
  24   * @author Marco Pivetta <ocramius@gmail.com>
  25   * @license MIT
  26   */
  27  class BaseClass implements BaseInterface
  28  {
  29      /**
  30       * @var string
  31       */
  32      public $publicProperty = 'publicPropertyDefault';
  33  
  34      /**
  35       * @var string
  36       */
  37      protected $protectedProperty = 'protectedPropertyDefault';
  38  
  39      /**
  40       * @var string
  41       */
  42      private $privateProperty = 'privatePropertyDefault';
  43  
  44      /**
  45       * @return string
  46       */
  47      public function publicMethod()
  48      {
  49          return 'publicMethodDefault';
  50      }
  51  
  52      /**
  53       * @return string
  54       */
  55      protected function protectedMethod()
  56      {
  57          return 'protectedMethodDefault';
  58      }
  59  
  60      /**
  61       * @return string
  62       */
  63      private function privateMethod()
  64      {
  65          return 'privateMethodDefault';
  66      }
  67  
  68      /**
  69       * @param \stdClass $param
  70       *
  71       * @return string
  72       */
  73      public function publicTypeHintedMethod(\stdClass $param)
  74      {
  75          return 'publicTypeHintedMethodDefault';
  76      }
  77  
  78      /**
  79       * @param array $param
  80       *
  81       * @return string
  82       */
  83      public function publicArrayHintedMethod(array $param)
  84      {
  85          return 'publicArrayHintedMethodDefault';
  86      }
  87  
  88      /**
  89       * @return string
  90       */
  91      public function & publicByReferenceMethod()
  92      {
  93          $returnValue = 'publicByReferenceMethodDefault';
  94  
  95          return $returnValue;
  96      }
  97  
  98      /**
  99       * @param mixed $param
 100       * @param mixed $byRefParam
 101       *
 102       * @return string
 103       */
 104      public function publicByReferenceParameterMethod($param, & $byRefParam)
 105      {
 106          return 'publicByReferenceParameterMethodDefault';
 107      }
 108  }


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