MergeCells   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 0 Features 2
Metric Value
wmc 1
c 5
b 0
f 2
lcom 0
cbo 1
dl 0
loc 19
rs 10

1 Method

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