Zoom   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 6 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