MergeCells::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 2
Metric Value
c 4
b 0
f 2
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Xls\Record;
4
5
use Xls\Range;
6
7
class MergeCells extends AbstractRecord
8
{
9
    const NAME = 'MERGECELLS';
10
    const ID = 0x00E5;
11
12
    /**
13
     * Generate the MERGECELLS biff record
14
     *
15
     * @param Range[] $ranges
16
     *
17
     * @return string
18
     */
19
    public function getData($ranges)
20
    {
21
        $data = $this->getSubRecord('Range', array($ranges));
22
23
        return $this->getFullRecord($data);
24
    }
25
}
26