반응형
늦은지연바인딩
-
LSB(Late Static Binding)Technique/PHP 2016. 12. 21. 22:19
이번 주제는 LSB(Late Static Binding)입니다.PHP 5.3 버전에서부터 도입된 개념입니다. 중요한 부분은 can be used to reference the called class in a context of static inheritance ( 정적 상속의 상황에서 호출전 클래스를 참조 할 수 있다.) More precisely, late static bindings work by storing the class named in the last "non-forwarding call" ( 좀 더 명확히 이야기 하자면 LSB는 최근 비 전송콜의 class이름을 저장한다. ) ㅂ가 매우 중요한 부분 인 것 같습니다. 그럼 예제를 보면서 이야기 해 볼까요 123456789101112131415