BtrieveRecord::setLength()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace FForattini\Btrieve\Persistence;
4
5
class BtrieveRecord extends ActiveRecord
6
{
7
    protected $length;
8
9
    /**
10
     * Sets the element's length in bytes.
11
     *
12
     * @param int $n
13
     *
14
     * @return BtrieveRecord
15
     */
16
    public function setLength($n)
17
    {
18
        $this->length = $n;
19
20
        return $this;
21
    }
22
23
    /**
24
     * Returns the element's length in bytes.
25
     *
26
     * @return int
27
     */
28
    public function getLength()
29
    {
30
        return $this->length;
31
    }
32
}
33