public function __construct($accountGateway = false, $invitation = false, $gatewayType = false) { $this->accountGateway = $accountGateway; $this->invitation = $invitation; $this->gatewayType = $gatewayType ?: $this->gatewayTypes()[0]; }