function __construct(Mechanic $mechanic, array $recipients, array $senders, array $configs, $notifyCases = []) { parent::__construct($mechanic); $this->recipients = $recipients; $this->senders = $senders; $this->configs = $configs; $this->notifyCases = $notifyCases; }
function __construct(Mechanic $mechanic, $type = self::TYPE_EXCEL2007) { $this->type = $type; $this->excel = new PHPExcel(); parent::__construct($mechanic); }