Externsheet   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 11 2
1
<?php
2
3
namespace Xls\Record;
4
5
class Externsheet extends AbstractRecord
6
{
7
    const NAME = 'EXTERNSHEET';
8
    const ID = 0x0017;
9
10
    /**
11
     * @param $refs
12
     *
13
     * @return string
14
     */
15
    public function getData($refs)
16
    {
17
        $refCount = count($refs);
18
        $data = pack('v', $refCount);
19
20
        foreach ($refs as $ref) {
21
            $data .= $ref;
22
        }
23
24
        return $this->getFullRecord($data);
25
    }
26
}
27