public function __construct($user, BraintreeTransaction $transaction) { $this->user = $user; $this->transaction = $transaction; }