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

Get::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
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
}