Exceptions
3 weeks ago
Facades
3 weeks ago
Testing
3 weeks ago
Traits
3 weeks ago
AggregateServiceProvider.php
2 years ago
Benchmark.php
3 weeks ago
Carbon.php
3 weeks ago
Composer.php
3 weeks ago
ConfigurationUrlParser.php
3 weeks ago
DateFactory.php
3 weeks ago
Env.php
3 weeks ago
Fluent.php
3 weeks ago
HigherOrderTapProxy.php
2 years ago
HtmlString.php
2 years ago
InteractsWithTime.php
2 years ago
Js.php
3 weeks ago
Lottery.php
3 weeks ago
Manager.php
2 years ago
MessageBag.php
3 weeks ago
MultipleInstanceManager.php
3 weeks ago
NamespacedItemResolver.php
3 weeks ago
Optional.php
3 weeks ago
Pluralizer.php
3 weeks ago
ProcessUtils.php
3 weeks ago
Reflector.php
3 weeks ago
ServiceProvider.php
2 years ago
Str.php
3 weeks ago
Stringable.php
3 weeks ago
Timebox.php
3 weeks ago
ValidatedInput.php
3 weeks ago
ViewErrorBag.php
3 weeks ago
helpers.php
3 weeks ago
HigherOrderTapProxy.php
37 lines
| 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 |