Completed
Push — master ( 9ec25c...150d68 )
by Giovanni
07:07
created

Get   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 1
1
<?php
2
3
namespace REverse\GSheets\Operation;
4
5
class Get extends Operation
6
{
7
    /**
8
     * This method returns values in range.
9
     * Range is A1 Notation
10
     *
11
     * @param $range
12
     *
13
     * @return \Google_Service_Sheets_ValueRange
14
     */
15
    public function execute($range)
16
    {
17
        $service = $this->spreadsheets->getClient()->getGoogleServiceSheets();
18
19
        return $service->spreadsheets_values->get($this->spreadsheets->getSpreadSheetId(), $range);
20
    }
21
}