Intercepted.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Framework\Interception\Fixture;
  8. /**
  9. * @codingStandardsIgnoreStart
  10. */
  11. class Intercepted extends InterceptedParent implements InterceptedInterface
  12. {
  13. protected $_key;
  14. /**
  15. * @SuppressWarnings(PHPMD.ShortMethodName)
  16. */
  17. public function A($param1)
  18. {
  19. $this->_key = $param1;
  20. return $this;
  21. }
  22. /**
  23. * @SuppressWarnings(PHPMD.ShortMethodName)
  24. */
  25. public function B($param1, $param2)
  26. {
  27. return '<B>' . $param1 . $param2 . $this->C($param1) . '</B>';
  28. }
  29. /**
  30. * @SuppressWarnings(PHPMD.ShortMethodName)
  31. */
  32. public function C($param1)
  33. {
  34. return '<C>' . $param1 . '</C>';
  35. }
  36. /**
  37. * @SuppressWarnings(PHPMD.ShortMethodName)
  38. */
  39. public function D($param1)
  40. {
  41. return '<D>' . $this->_key . $param1 . '</D>';
  42. }
  43. /**
  44. * @SuppressWarnings(PHPMD.ShortMethodName)
  45. * @SuppressWarnings(PHPMD.FinalImplementation) Suppressed as is a fixture but not a real code
  46. */
  47. final public function E($param1)
  48. {
  49. return '<E>' . $this->_key . $param1 . '</E>';
  50. }
  51. /**
  52. * @SuppressWarnings(PHPMD.ShortMethodName)
  53. */
  54. public function F($param1)
  55. {
  56. return '<F>' . $param1 . '</F>';
  57. }
  58. /**
  59. * @SuppressWarnings(PHPMD.ShortMethodName)
  60. */
  61. public function G($param1)
  62. {
  63. return '<G>' . $param1 . "</G>";
  64. }
  65. /**
  66. * @SuppressWarnings(PHPMD.ShortMethodName)
  67. */
  68. public function K($param1)
  69. {
  70. return '<K>' . $param1 . '</K>';
  71. }
  72. /**
  73. * @SuppressWarnings(PHPMD.ShortMethodName)
  74. */
  75. public function V($param1)
  76. {
  77. return '<V>' . $param1 . '</V>';
  78. }
  79. /**
  80. * @SuppressWarnings(PHPMD.ShortMethodName)
  81. */
  82. public function W($param1)
  83. {
  84. return '<W>' . $param1 . '</W>';
  85. }
  86. /**
  87. * @SuppressWarnings(PHPMD.ShortMethodName)
  88. */
  89. public function X($param1)
  90. {
  91. return '<X>' . $param1 . '</X>';
  92. }
  93. /**
  94. * @SuppressWarnings(PHPMD.ShortMethodName)
  95. */
  96. public function Y($param1)
  97. {
  98. return '<Y>' . $param1 . '</Y>';
  99. }
  100. /**
  101. * @SuppressWarnings(PHPMD.ShortMethodName)
  102. */
  103. public function Z($param1)
  104. {
  105. return '<Z>' . $param1 . '</Z>';
  106. }
  107. }