From   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A setName() 0 5 1
1
<?php
2
namespace Sichikawa\SendgridApiBuilder\Api;
3
4
class From
5
{
6
    /**
7
     * To constructor.
8
     * @param $email
9
     * @param null $name
10
     */
11
    public function __construct($email, $name = null)
12
    {
13
        $this->email = $email;
14
        $this->name = $name;
15
    }
16
17
    /**
18
     * @var string
19
     */
20
    public $name;
21
22
    /**
23
     * @var string
24
     */
25
    public $email;
26
27
    /**
28
     * @param string $name
29
     * @return From
30
     */
31
    public function setName($name)
32
    {
33
        $this->name = $name;
34
        return $this;
35
    }
36
37
38
}
39