private function prepareScanAgentStatus() { $reflection = new \ReflectionClass($this->scanJobProxy->classname()); $method = $reflection->getMethod('scanAgentStatus'); $method->setAccessible(true); return $method; }