ObjComment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 8 1
1
<?php
2
3
namespace Xls\Record;
4
5
class ObjComment extends Obj
6
{
7
    const TYPE = 0x19;
8
9
    /**
10
     * @param integer $objId
11
     * @param string $guid comment guid (only for tests)
12
     *
13
     * @return string
14
     */
15
    public function getData($objId, $guid = null)
16
    {
17
        $data = $this->getFtCmoSubrecord($objId);
18
        $data .= $this->getFtNtsSubrecord($guid);
19
        $data .= $this->getFtEndSubrecord();
20
21
        return $this->getFullRecord($data);
22
    }
23
}
24