Zoom::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Xls\Record;
4
5
class Zoom extends AbstractRecord
6
{
7
    const NAME = 'ZOOM';
8
    const ID = 0x00A0;
9
10
    /**
11
     * Store the window zoom factor. This should be a reduced fraction but for
12
     * simplicity we will store all fractions with a numerator of 100.
13
     * @param $zoom
14
     *
15
     * @return string
16
     */
17
    public function getData($zoom)
18
    {
19
        $data = pack("vv", $zoom, 100);
20
21
        return $this->getFullRecord($data);
22
    }
23
}
24