<?php

namespace App\Http\Controllers\Channel\Book\Transformers;

class ProductTransformer
{
    public function transform($product){
        return [
            'product_id'       =>  $product->id,
            'price'       =>  $product->price,
            'given'       =>  $product->given,
            'is_default'       =>  $product->is_default,
            'type'       =>  $product->type,
        ];
    }
}