<?php
/**
 * SkuDetail.php
 *
 * @copyright  2022 beikeshop.com - All Rights Reserved
 * @link       https://beikeshop.com
 * @author     TL <mengwb@guangda.work>
 * @created    2022-07-20 11:33:06
 * @modified   2022-07-20 11:33:06
 */

namespace Beike\Shop\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class NumPricesDetail extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id'                  => $this->id,
            'num'                 => $this->num,
            'price'               => $this->price,
            'price_format'        => currency_format($this->price),
        ];
    }
}
