Completed
Push — master ( caad37...82c5ce )
by Dmitriy
06:13
created

Property   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 30
ccs 2
cts 4
cp 0.5
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLongName() 0 4 1
A getDescription() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class Property extends Model
8
{
9
    protected $longName = null;
10
11
    protected $description = null;
12
13
    protected $propNameMap = [
14
        'longname' => 'longName'
15
    ];
16
17
    /**
18
     * Retrieve the longName property
19
     *
20
     * @return string|null
21
     */
22
    public function getLongName()
23
    {
24
        return $this->longName;
25
    }
26
27
    /**
28
     * Retrieve the description property
29
     *
30
     * @return string|null
31
     */
32 1
    public function getDescription()
33
    {
34 1
        return $this->description;
35
    }
36
}
37