LeftMargin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

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