AttachmentPayload   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 7
c 1
b 0
f 0
dl 0
loc 45
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFooter() 0 3 1
A setTimestamp() 0 3 1
A getTimestamp() 0 3 1
A setFooter() 0 3 1
1
<?php
2
3
namespace PortlandLabs\Slackbot\Slack\Api\Payload;
4
5
use CL\Slack\Model\Attachment;
6
7
class AttachmentPayload extends Attachment
8
{
9
10
    protected $ts;
11
12
    protected $footer;
13
14
    /**
15
     * Set the timestamp
16
     *
17
     * @param $timestamp
18
     */
19
    public function setTimestamp(string $timestamp)
20
    {
21
        $this->ts = $timestamp;
22
    }
23
24
    /**
25
     * Get the timestamp
26
     *
27
     * @return string
28
     */
29
    public function getTimestamp(): string
30
    {
31
        return $this->ts;
32
    }
33
34
    /**
35
     * Get the footer
36
     *
37
     * @return string
38
     */
39
    public function getFooter(): string
40
    {
41
        return $this->footer;
42
    }
43
44
    /**
45
     * Set the footer
46
     *
47
     * @param string $footer
48
     */
49
    public function setFooter(string $footer)
50
    {
51
        $this->footer = $footer;
52
    }
53
54
}
55