id = $id; $this->name = $name; $this->price = $price; $this->weight = $weight; } /** * Get the identifier of the item. * * @return int|string */ public function getIdentifier($options = null) { return $this->id; } /** * Get the description or title of the item. * * @return string */ public function getDescription($options = null) { return $this->name; } /** * Get the price of the item. * * @return float */ public function getPrice($options = null) { return $this->price; } /** * Get the price of the item. * * @return float */ public function getWeight($options = null) { return $this->weight; } public function find($id) { return $this; } }