Reflection ReflectionMethod::export
(PHP 5, PHP 7)
ReflectionMethod::export — reflection 메서드 내보내기
경고 이 함수는 PHP 7.4.0부터 DEPRECATED되었으며 PHP 8.0.0부터 제거되었습니다. 이 함수에 의존하는 것은 매우 권장되지 않습니다.
설명
public static ReflectionMethod::export(string $class
, string $name
, bool $return
= false
): string
ReflectionMethod를 내보냅니다.
매개변수
class
- 클래스 이름입니다.
name
- 메서드의 이름입니다.
return
true
로 설정하면 방출이 아닌 내보내기가 반환됩니다.false
(기본값)로 설정하면 반대가 됩니다.
반환 값
return
매개변수가 true
로 설정되면 내보내기가 문자열로 반환되고, 그렇지 않으면 null
이 반환됩니다.
기타
- ReflectionMethod::__construct() - ReflectionMethod 생성
- ReflectionMethod::__toString() - Reflection 메서드 개체의 문자열 표현을 반환합니다.