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 Notebook
17 *
18 * Device parser for notebook detection in Facebook useragents
19 */
20class Notebook extends AbstractDeviceParser
21{
22    protected $fixtureFile = 'regexes/device/notebooks.yml';
23
24    protected $parserName = 'notebook';
25
26    /**
27     * @inheritdoc
28     */
29    public function parse(): ?array
30    {
31        if (!$this->matchUserAgent('FBMD/')) {
32            return null;
33        }
34
35        return parent::parse();
36    }
37}
38