__construct() public method
Constructor. The default implementation does two things: Initializes the object with the given configuration $config. Call init(). If this method is overridden in a child class, it is recommended that the last parameter of the constructor is a configuration array, like $config here. call the parent implementation at the end of the constructor.
public void __construct ( $config = [] )$config array
Name-value pairs that will be used to initialize the object prop