AbstractDeviceParser.php
1 month ago
Camera.php
2 years ago
CarBrowser.php
2 years ago
Console.php
2 years ago
HbbTv.php
3 months ago
Mobile.php
2 years ago
Notebook.php
2 years ago
PortableMediaPlayer.php
2 years ago
ShellTv.php
3 months ago
Console.php
40 lines
| 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 | declare (strict_types=1); |
| 11 | namespace IAWPSCOPED\DeviceDetector\Parser\Device; |
| 12 | |
| 13 | /** |
| 14 | * Class Console |
| 15 | * |
| 16 | * Device parser for console detection |
| 17 | * @internal |
| 18 | */ |
| 19 | class Console extends AbstractDeviceParser |
| 20 | { |
| 21 | /** |
| 22 | * @var string |
| 23 | */ |
| 24 | protected $fixtureFile = 'regexes/device/consoles.yml'; |
| 25 | /** |
| 26 | * @var string |
| 27 | */ |
| 28 | protected $parserName = 'console'; |
| 29 | /** |
| 30 | * @inheritdoc |
| 31 | */ |
| 32 | public function parse() : ?array |
| 33 | { |
| 34 | if (!$this->preMatchOverall()) { |
| 35 | return null; |
| 36 | } |
| 37 | return parent::parse(); |
| 38 | } |
| 39 | } |
| 40 |