ObjComment::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
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