public function reply($intReply) { if (!Validator::IntType()->between(0, 1)->validate($intReply)) { $this->objLogger->addError('Reply must be 1 or 0'); throw new SMSMessageException('Reply must be 1 or 0'); } $this->intReply = (int) $intReply; $this->objLogger->addDebug('Reply has been set to ' . $intReply); return $this; }