\Google\AdsApi\Common\UtilReflection

Encapsulates common reflection use cases to make them easier to use.

Summary

Methods
Properties
Constants
createInstance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createInstance()

createInstance(string  $className,mixed  $args = null): mixed

Creates a new instance of the specified class name.

Parameters

string $className

the fully qualified class name

mixed $args

a variable number of arguments to pass to the class constructor

Throws

\ReflectionException

if the object instance could not be created

Returns

mixed —

the created object instance