string('trans_type1'); $table->string('trans_type2'); $table->bigInteger('transaction_id')->unsigned(); $table->string('product_code'); $table->string('product_name'); $table->integer('qty')->default(0); $table->decimal('price', 14, 5)->default(0.00); $table->decimal('amount', 14, 5)->default(0.00); */ private $trans_type1; private $trans_type2; private $transaction_id; private $product_code; private $product_name; private $qty; private $price; private $amount; public function __construct( string $trans_type1,string $trans_type2, int $transaction_id, string $product_code, $product_name, int $qty, float $price,float $amount ){ $this->trans_type1= $trans_type1; $this->trans_type2 = $trans_type2; $this->transaction_id = $transaction_id; $this->product_code = $product_code; $this->product_name = $product_name; $this->qty = $qty; $this->price = $price; $this->amount = $amount; } /** * @return string */ public function getTransType1(): string { return $this->trans_type1; } /** * @return string */ public function getTransType2(): string { return $this->trans_type2; } /** * @return int */ public function getTransactionId(): int { return $this->transaction_id; } /** * @return string */ public function getProductCode(): string { return $this->product_code; } /** * @return string */ public function getProductName(): string { return $this->product_name; } /** * @return int */ public function getQty(): int { return $this->qty; } public function getPrice(): float { return $this->price; } public function getAmount(): float { return $this->amount; } }