protected static function getPrivateMethod($name) { $class = new \ReflectionClass('CloudConvert\\Api'); $method = $class->getMethod($name); $method->setAccessible(true); return $method; }