UserMailable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEmail() 0 3 1
A getGreeting() 0 3 1
1
<?php
2
3
namespace Sfneal\PostOffice\Mailables\Traits;
4
5
trait UserMailable
6
{
7
    /**
8
     * @return string First line of email
9
     */
10
    public function getGreeting(): string
11
    {
12
        return "Hi {$this->user->first_name}";
13
    }
14
15
    /**
16
     * Email recipient.
17
     *
18
     * @return string
19
     */
20
    public function getEmail(): string
21
    {
22
        return $this->user->email;
23
    }
24
}
25