PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.11.1
Independent Analytics – WordPress Analytics Plugin v2.11.1
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / vendor / illuminate / support / HigherOrderTapProxy.php
HigherOrderTapProxy.php
37 lines 690 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWPSCOPED\Illuminate\Support;
4
5 /** @internal */
6 class HigherOrderTapProxy
7 {
8 /**
9 * The target being tapped.
10 *
11 * @var mixed
12 */
13 public $target;
14 /**
15 * Create a new tap proxy instance.
16 *
17 * @param mixed $target
18 * @return void
19 */
20 public function __construct($target)
21 {
22 $this->target = $target;
23 }
24 /**
25 * Dynamically pass method calls to the target.
26 *
27 * @param string $method
28 * @param array $parameters
29 * @return mixed
30 */
31 public function __call($method, $parameters)
32 {
33 $this->target->{$method}(...$parameters);
34 return $this->target;
35 }
36 }
37