Componere\Patch::getClosure
(Componere 2 >= 2.1.0)
Componere\Patch::getClosure — Get Closure
설명
public Componere\Patch::getClosure(string $name
): Closure
이름으로 지정된 메서드에 대해 클로저를 반환합니다.
매개변수
name
- 대소문자를 구분하지 않는 메서드 이름
반환 값
올바른 범위와 객체에 바인딩된 클로저
예외
경고 name
을 찾을 수 없으면 RuntimeException이 발생합니다.