public function setCom($com) { if (strlen($com) > 100) { throw new InvalidArgumentException("Order description cannot be longer than 100 characters"); } $this->parameters['com'] = $com; }