Code Duplication    Length = 6-7 lines in 2 locations

src/Transaction.php 1 location

@@ 80-85 (lines=6) @@
77
	 * @param string       $currency_code Currency code.
78
	 * @param TrackingCode $tracking_code Tracking code.
79
	 */
80
	public function __construct( $store_id, $amount, $currency_code, $tracking_code ) {
81
		$this->store_id      = $store_id;
82
		$this->amount        = $amount;
83
		$this->currency_code = $currency_code;
84
		$this->tracking_code = $tracking_code;
85
	}
86
87
	/**
88
	 * Get brand ID.

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.