Codepage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
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 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 6 1
1
<?php
2
namespace Xls\Record;
3
4
class Codepage extends AbstractRecord
5
{
6
    const NAME = 'CODEPAGE';
7
    const ID = 0x0042;
8
9
    /**
10
     * Generate the CODEPAGE biff record
11
     * @param $codepage
12
     *
13
     * @return string
14
     */
15
    public function getData($codepage)
16
    {
17
        $data = pack('v', $codepage);
18
19
        return $this->getFullRecord($data);
20
    }
21
}
22