Number   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 8 1
1
<?php
2
namespace Xls\Record;
3
4
class Number extends AbstractRecord
5
{
6
    const NAME = 'NUMBER';
7
    const ID = 0x0203;
8
9
    /**
10
     * @param integer $row
11
     * @param integer $col
12
     * @param float $num
13
     * @param null $format
14
     *
15
     * @return string
16
     */
17
    public function getData($row, $col, $num, $format = null)
18
    {
19
        $xf = $this->xf($format);
20
        $data = pack("vvv", $row, $col, $xf);
21
        $data .= pack("d", $num);
22
23
        return $this->getFullRecord($data);
24
    }
25
}
26