Completed
Push — master ( 46f3eb...7c230f )
by Mathieu
02:46 queued 40s
created

Link::email()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Charcoal\Email\Objects;
6
7
// From 'locomotivemtl/charcoal-core'
8
use Charcoal\Model\AbstractModel;
9
10
/**
11
 * Tracking Link
12
 */
13
class Link extends AbstractModel
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: hasProperty, p, properties, property
Loading history...
14
{
15
    /**
16
     * @var string
17
     */
18
    public $email;
19
20
    /**
21
     * @var string
22
     */
23
    public $url;
24
25
    /**
26
     * @param string $emailId The email (log) id.
27
     * @return self
28
     */
29
    public function setEmail(?string $emailId)
30
    {
31
        $this->email = $emailId;
32
        return $this;
33
    }
34
35
    /**
36
     * @return string|null
37
     */
38
    public function email(): ?string
39
    {
40
        return $this->email;
41
    }
42
43
    /**
44
     * @param string $url The original (and target) URL.
45
     * @return self
46
     */
47
    public function setUrl(?string $url)
48
    {
49
        $this->url = $url;
50
        return $this;
51
    }
52
53
    /**
54
     * @return string|null
55
     */
56
    public function url(): ?string
57
    {
58
        return $this->url;
59
    }
60
}
61