OperatingSystem.php 622 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * ua-parser
  4. *
  5. * Copyright (c) 2011-2013 Dave Olsen, http://dmolsen.com
  6. * Copyright (c) 2013-2014 Lars Strojny, http://usrportage.de
  7. *
  8. * Released under the MIT license
  9. */
  10. namespace UAParser\Result;
  11. class OperatingSystem extends AbstractVersionedSoftware
  12. {
  13. /** @var string|null */
  14. public $major;
  15. /** @var string|null */
  16. public $minor;
  17. /** @var string|null */
  18. public $patch;
  19. /** @var string|null */
  20. public $patchMinor;
  21. public function toVersion(): string
  22. {
  23. return $this->formatVersion($this->major, $this->minor, $this->patch, $this->patchMinor);
  24. }
  25. }