23 lines
431 B
PHP
23 lines
431 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace wchat\wx\V3\Libs;
|
||
|
|
|
||
|
|
class GoodsInfo
|
||
|
|
{
|
||
|
|
public string $ProductId;
|
||
|
|
public int $Quantity;
|
||
|
|
public int $OrigPrice;
|
||
|
|
public int $ActualPrice;
|
||
|
|
public string $Attach;
|
||
|
|
|
||
|
|
public function __construct(array $data)
|
||
|
|
{
|
||
|
|
$this->ProductId = $data['ProductId'];
|
||
|
|
$this->Quantity = $data['Quantity'];
|
||
|
|
$this->OrigPrice = $data['OrigPrice'];
|
||
|
|
$this->ActualPrice = $data['ActualPrice'];
|
||
|
|
$this->Attach = $data['Attach'];
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|