Phone.php 729 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace WhichBrowser\Analyser\Header\Useragent\Device;
  3. use WhichBrowser\Constants;
  4. use WhichBrowser\Data;
  5. use WhichBrowser\Model\Version;
  6. trait Phone
  7. {
  8. private function detectPhone($ua)
  9. {
  10. $this->detectNttTeless($ua);
  11. }
  12. /* Casio */
  13. private function detectNttTeless($ua)
  14. {
  15. if (preg_match('/Product\=NTT\/Teless/ui', $ua, $match)) {
  16. $this->data->device->manufacturer = 'NTT';
  17. $this->data->device->model = 'Teless';
  18. $this->data->device->identified |= Constants\Id::MATCH_UA;
  19. $this->data->device->type = Constants\DeviceType::MOBILE;
  20. $this->data->device->subtype = Constants\DeviceSubType::DESKTOP;
  21. }
  22. }
  23. }