All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
36 lines
724 B
PHP
36 lines
724 B
PHP
<?php
|
|
|
|
namespace Maatwebsite\Excel;
|
|
|
|
use Illuminate\Support\Traits\Macroable;
|
|
|
|
trait DelegatedMacroable
|
|
{
|
|
use Macroable {
|
|
__call as __callMacro;
|
|
}
|
|
|
|
/**
|
|
* Dynamically handle calls to the class.
|
|
*
|
|
* @param string $method
|
|
* @param array $parameters
|
|
* @return mixed
|
|
*/
|
|
public function __call($method, $parameters)
|
|
{
|
|
if (method_exists($this->getDelegate(), $method)) {
|
|
return call_user_func_array([$this->getDelegate(), $method], $parameters);
|
|
}
|
|
|
|
array_unshift($parameters, $this);
|
|
|
|
return $this->__callMacro($method, $parameters);
|
|
}
|
|
|
|
/**
|
|
* @return object
|
|
*/
|
|
abstract public function getDelegate();
|
|
}
|