WebBrowser   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 14
dl 0
loc 30
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getVendor() 0 3 1
A getDataSet() 0 10 1
1
<?php
2
/*
3
 * This file is part of the ByscriptsStaticEntity package.
4
 *
5
 * (c) Thierry Goettelmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Byscripts\StaticEntity\Tests\Fixtures;
12
13
use Byscripts\StaticEntity\AbstractStaticEntity;
14
15
/**
16
 * Class WebBrowser
17
 *
18
 * @author Thierry Goettelmann <[email protected]>
19
 */
20
class WebBrowser extends AbstractStaticEntity
21
{
22
    const FIREFOX = 'mf';
23
    const CHROME = 'gc';
24
25
    private $name;
26
    private $vendor;
27
28
    static function getDataSet(): array
29
    {
30
        return [
31
            self::FIREFOX => [
32
                'name' => 'Firefox',
33
                'vendor' => 'Mozilla',
34
            ],
35
            self::CHROME => [
36
                'name' => 'Chrome',
37
                'vendor' => 'Google',
38
            ],
39
        ];
40
    }
41
42
    public function getName(): string
43
    {
44
        return $this->name;
45
    }
46
47
    public function getVendor(): string
48
    {
49
        return $this->vendor;
50
    }
51
}
52