LeftMargin::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
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 LeftMargin extends AbstractRecord
6
{
7
    const NAME = 'LEFTMARGIN';
8
    const ID = 0x26;
9
10
    /**
11
     * @param $margin
12
     *
13
     * @return string
14
     */
15
    public function getData($margin)
16
    {
17
        $data = pack("d", $margin);
18
19
        return $this->getFullRecord($data);
20
    }
21
}
22