protected function invokeMethod($object, $method, array $args = []) { $reflection = new \ReflectionMethod($object, $method); $reflection->setAccessible(true); return $reflection->invokeArgs($object, $args); }