1<?php 2 3/** 4 * Device Detector - The Universal Device Detection library for parsing User Agents 5 * 6 * @link https://matomo.org 7 * 8 * @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later 9 */ 10 11declare(strict_types=1); 12 13namespace DeviceDetector\Parser\Device; 14 15/** 16 * Class Console 17 * 18 * Device parser for console detection 19 */ 20class Console extends AbstractDeviceParser 21{ 22 /** 23 * @var string 24 */ 25 protected $fixtureFile = 'regexes/device/consoles.yml'; 26 27 /** 28 * @var string 29 */ 30 protected $parserName = 'console'; 31 32 /** 33 * @inheritdoc 34 */ 35 public function parse(): ?array 36 { 37 if (!$this->preMatchOverall()) { 38 return null; 39 } 40 41 return parent::parse(); 42 } 43} 44