EmailNotification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 0
dl 0
loc 40
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isReady() 0 4 1
1
<?php
2
/**
3
 * @author Jean Silva <[email protected]>
4
 * @license MIT
5
 */
6
namespace Jeancsil\FlightSpy\Notifier\Email;
7
8
use Jeancsil\FlightSpy\Notifier\Notification;
9
10
class EmailNotification implements Notification
11
{
12
    /**
13
     * @var string
14
     */
15
    public $from;
16
17
    /**
18
     * @var string
19
     */
20
    public $to;
21
22
    /**
23
     * @var string
24
     */
25
    public $subject;
26
27
    /**
28
     * @var string
29
     */
30
    public $text;
31
32
    /**
33
     * @var string
34
     */
35
    public $html;
36
37
    /**
38
     * @var bool
39
     */
40
    public $ready = false;
41
42
    /**
43
     * @return boolean
44
     */
45
    public function isReady()
46
    {
47
        return $this->ready === true;
48
    }
49
}
50