Completed
Push — gh-27-android-devices ( 34c0bd )
by Serhii
02:00
created

Model::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @author Serhii Nekhaienko <[email protected]>
4
 * @license GPL
5
 * @copyright Serhii Nekhaienko &copy 2018
6
 * @version 4.0.2
7
 * @project endorphin-studio/browser-detector
8
 */
9
10
namespace EndorphinStudio\Detector\Data;
11
12
class Model implements \JsonSerializable
13
{
14
    /**
15
     * @return string
16
     */
17
    public function getSeries(): string
18
    {
19
        return $this->series;
20
    }
21
22
    /**
23
     * @param string $series
24
     */
25
    public function setSeries(string $series)
26
    {
27
        $this->series = $series;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getModel(): string
34
    {
35
        return $this->model;
36
    }
37
38
    /**
39
     * @param string $model
40
     */
41
    public function setModel(string $model)
42
    {
43
        $this->model = $model;
44
    }
45
46
    /**
47
     * @var string
48
     */
49
    private $series;
50
51
    /**
52
     * @var string
53
     */
54
    private $model;
55
56
    public function jsonSerialize()
57
    {
58
        return get_object_vars($this);
59
    }
60
}