Test Setup Failed
Pull Request — master (#147)
by Alex
03:48
created

ODataTitle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace POData\ObjectModel;
4
5
/**
6
 * Class ODataTitle
7
 * @package POData\ObjectModel
8
 */
9
class ODataTitle
10
{
11
    /**
12
     * Title.
13
     *
14
     * @var string
15
     */
16
    public $title;
17
18
    /**
19
     * Type
20
     *
21
     * @var string
22
     */
23
    public $type;
24
25
    public function __construct($title, $type = 'text')
26
    {
27
        $this->title = $title;
28
        $this->type = $type;
29
    }
30
}
31