Style::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace Xls\Record;
4
5
class Style extends AbstractRecord
6
{
7
    const NAME = 'STYLE';
8
    const ID = 0x0293;
9
10
    /**
11
     * Generate the TYLE records
12
     * @return string
13
     */
14
    public function getData()
15
    {
16
        $ixfe = 0x8000; // Index to style XF
17
        $builtIn = 0x00; // Built-in style
18
        $iLevel = 0xff; // Outline style level
19
20
        $data = pack("vCC", $ixfe, $builtIn, $iLevel);
21
22
        return $this->getFullRecord($data);
23
    }
24
}
25