Value   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 27
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getGoogleSheetsValueRange() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
namespace REverse\GSheets;
4
5
class Value
6
{
7
    /**
8
     * @var \Google_Service_Sheets_ValueRange
9
     */
10
    private $googleSheetsValueRange;
11
12
    /**
13
     * GoogleSheetsValue constructor.
14
     *
15
     * @param array $values
16
     */
17
    public function __construct(...$values)
18
    {
19
        $this->googleSheetsValueRange = new \Google_Service_Sheets_ValueRange([
20
            'values' => [
21
                $values,
22
            ],
23
        ]);
24
    }
25
26
    /**
27
     * @return \Google_Service_Sheets_ValueRange
28
     */
29
    public function getGoogleSheetsValueRange()
30
    {
31
        return $this->googleSheetsValueRange;
32
    }
33
}
34