BtrieveRecord   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLength() 0 6 1
A getLength() 0 4 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