ReflectsClosures
trait ReflectsClosures (View source)
Методы
| string | firstClosureParameterType(Closure $closure) Получить имя класса первого параметра заданного замыкания. | |
| array | firstClosureParameterTypes(Closure $closure) Получить имена классов первого параметра заданного замыкания, включая типы объединения. | |
| array | closureParameterTypes(Closure $closure) Получить имена классов/типов параметров заданного замыкания. |
Детали
protected string firstClosureParameterType(Closure $closure)
Получить имя класса первого параметра заданного замыкания.
protected array firstClosureParameterTypes(Closure $closure)
Получить имена классов первого параметра заданного замыкания, включая типы объединения.
protected array closureParameterTypes(Closure $closure)
Получить имена классов/типов параметров заданного замыкания.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Support/Traits/ReflectsClosures.html