ForwardsCalls
trait ForwardsCalls (View source)
Methods
mixed | forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object. | |
mixed | forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself. | |
static void | throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method. |
Details
protected mixed forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
protected mixed forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
static protected void throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Support/Traits/ForwardsCalls.html