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/8.x/Illuminate/Support/Traits/ReflectsClosures.html