• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mimmi20 / browser-detector / 26619626009

29 May 2026 05:20AM UTC coverage: 96.478% (-0.01%) from 96.488%
26619626009

push

github

web-flow
Merge pull request #1058 from mimmi20/dependabot/composer/development-dependencies-f926ab8d74

composer (master)(deps-dev): bump the development-dependencies group with 7 updates

15285 of 15843 relevant lines covered (96.48%)

157.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Loader/Data/DeviceData.php
1
<?php
2

3
/**
4
 * This file is part of the browser-detector package.
5
 *
6
 * Copyright (c) 2012-2026, Thomas Mueller <mimmi20@live.de>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types = 1);
13

14
namespace BrowserDetector\Loader\Data;
15

16
use Override;
17
use UaLoader\Data\DeviceDataInterface;
18
use UaResult\Device\DeviceInterface;
19

20
final readonly class DeviceData implements DeviceDataInterface
21
{
22
    /** @throws void */
23
    public function __construct(private DeviceInterface $device, private string | null $os)
×
24
    {
25
    }
×
26

27
    /** @throws void */
28
    #[Override]
29
    public function getDevice(): DeviceInterface
×
30
    {
31
        return $this->device;
×
32
    }
33

34
    /** @throws void */
35
    #[Override]
36
    public function getOs(): string | null
×
37
    {
38
        return $this->os;
×
39
    }
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc