function __construct($gateway) { parent::__construct($gateway->getTable()); $this->gateway = $gateway; $this->db = $gateway->getDatabaseConnection(); }