
ReflectionClassConstant 클래스의 __construct 메서드는 ReflectionClassConstant 객체를 생성할 때 사용됩니다.
이 메서드는 ReflectionClass 객체와 string 타입의 이름을 받습니다.
ReflectionClass 객체는 클래스의 정보를 나타내며, string 타입의 이름은 클래스 상수 이름을 나타냅니다.
이 메서드는 ReflectionClassConstant 객체를 생성하고, 클래스 상수 이름을 설정합니다.
이 메서드를 호출할 때 ReflectionClass 객체가 null 인 경우 ReflectionException 예외가 발생할 수 있습니다.
또한, string 타입의 이름이 빈 문자열인 경우 InvalidArgumentException 예외가 발생할 수 있습니다.
2025-07-16 16:37