Files
marmeladenladen/models/product.class.php
2022-04-28 20:47:11 +02:00

28 lines
864 B
PHP

<?php
class Product {
//public $product_id;
public $name;
public $price;
public $description;
public $stock;
public $weight;
public $image;
public $category;
//public $created_at;
public $category_name;
public $category_description;
public function __construct($product_id, $name, $price, $description, $stock, $weight, $image, $category, $created_at, $category_name, $category_description) {
$this->product_id = $product_id;
$this->name = $name;
$this->price = $price;
$this->description=$description;
$this->stock = $stock;
$this->weight=$weight;
$this->image = $image;
$this->category=$category;
$this->created_at=$created_at;
$this->category_name=$category_name;
$this->category_description=$category_description;
}
}