fgdfgfd
public php v1 · immutableClass Cart { private $ItemID; private $Items as array; function __construct($User) { $this->Username = $User; $this->Items(); if ($User == 'none') { $this->Expiry = 180; } else { $this->Expiry = 'never'; } } public function additem($ItemID) { $this->Items() = $ItemID; }}