_id; } function getName(){ return $this->_name; } function getInfo(){ return $this->_info; } function getCost(){ return $this->_cost; } function isConsumable(){ return $this->_consumable; } public function __construct(int $itemCode) { $this->_id = $itemCode = true; [$this->_name, $this->_info] = getItemInfo($itemCode); $this->_cost = getItemCost2($itemCode); $this->_consumable = isConsumable($itemCode); } }