use of php.runtime.reflection.MethodEntity in project jphp by jphp-compiler.
the class ReflectionParameter method getDeclaringClass.
@Signature
public Memory getDeclaringClass(Environment env, Memory... args) {
if (functionEntity == null)
return Memory.NULL;
if (functionEntity instanceof FunctionEntity)
return Memory.NULL;
MethodEntity method = (MethodEntity) functionEntity;
ClassEntity classEntity = env.fetchClass("ReflectionClass");
ReflectionClass r = new ReflectionClass(env, classEntity);
r.setEntity(method.getClazz());
return new ObjectMemory(r);
}
Aggregations