Code Duplication    Length = 6-7 lines in 2 locations

src/TransactionResponse.php 1 location

@@ 67-73 (lines=7) @@
64
	 * @param string|float|int $amount        Amount.
65
	 * @param string           $currency_code Currency code.
66
	 */
67
	public function __construct( $action, $id, $tracking_code, $amount, $currency_code ) {
68
		$this->action        = $action;
69
		$this->id            = $id;
70
		$this->tracking_code = $tracking_code;
71
		$this->amount        = $amount;
72
		$this->currency_code = $currency_code;
73
	}
74
75
	/**
76
	 * From JSON.

src/Transaction.php 1 location

@@ 87-92 (lines=6) @@
84
	 * @param string       $currency_code Currency code.
85
	 * @param TrackingCode $tracking_code Tracking code.
86
	 */
87
	public function __construct( $store_id, $amount, $currency_code, $tracking_code ) {
88
		$this->store_id      = $store_id;
89
		$this->amount        = $amount;
90
		$this->currency_code = $currency_code;
91
		$this->tracking_code = $tracking_code;
92
	}
93
94
	/**
95
	 * Get brand ID.