public function __construct($id, $productType, DateTime $timestamp) { $this->id = $id; $this->product_type = $productType; $this->timestamp = $timestamp; }