1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- class ItemPagopar{
- public $name;
- public $qty;
- public $price;
- public $cityId;
- public $desc;
- public $url_img;
- public $weight;
- public $category;
- public $productId;
- public $large;
- public $width;
- public $height;
- public $sellerPhone;
- public $sellerAddress;
- public $sellerAddressRef;
- public $sellerAddressCoo;
- public $sellerPublicKey;
-
- public function __construct() {
- }
-
- public function formatToArray(){
- return [
- 'nombre' => $this->name,
- 'cantidad' => $this->qty,
- 'precio_total' => $this->price,
- 'ciudad' => $this->cityId,
- 'descripcion' => $this->desc,
- 'url_imagen' => $this->url_img,
- 'peso' => $this->weight,
- 'vendedor_telefono' => $this->sellerPhone,
- 'vendedor_direccion' => $this->sellerAddress,
- 'vendedor_direccion_referencia' => $this->sellerAddressRef,
- 'vendedor_direccion_coordenadas' => $this->sellerAddressCoo,
- 'public_key' => $this->sellerPublicKey,
- 'categoria' => $this->category,
- 'id_producto' => $this->productId,
- 'largo' => $this->large,
- 'ancho' => $this->width,
- 'alto' => $this->height
- ];
- }
- }
|