Code Duplication    Length = 52-52 lines in 2 locations

src/Document/ArchiveResult.php 1 location

@@ 8-59 (lines=52) @@
5
6
use Isign\ResultInterface;
7
8
class ArchiveResult implements ResultInterface
9
{
10
    /** @var string response status */
11
    private $status;
12
13
    /** @var  array file */
14
    private $file;
15
16
    /**
17
     * Fields expected in response
18
     * @return array
19
     */
20
    public function getFields()
21
    {
22
        return [
23
            'status',
24
            'file'
25
        ];
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getStatus()
32
    {
33
        return $this->status;
34
    }
35
36
    /**
37
     * @param string $status
38
     */
39
    public function setStatus($status)
40
    {
41
        $this->status = $status;
42
    }
43
44
    /**
45
     * @return array
46
     */
47
    public function getFile()
48
    {
49
        return $this->file;
50
    }
51
52
    /**
53
     * @param array $file
54
     */
55
    public function setFile($file)
56
    {
57
        $this->file = $file;
58
    }
59
}
60

src/Document/TimestampResult.php 1 location

@@ 8-59 (lines=52) @@
5
6
use Isign\ResultInterface;
7
8
class TimestampResult implements ResultInterface
9
{
10
    /** @var string response status */
11
    private $status;
12
13
    /** @var  array file */
14
    private $file;
15
16
    /**
17
     * Fields expected in response
18
     * @return array
19
     */
20
    public function getFields()
21
    {
22
        return [
23
            'status',
24
            'file'
25
        ];
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getStatus()
32
    {
33
        return $this->status;
34
    }
35
36
    /**
37
     * @param string $status
38
     */
39
    public function setStatus($status)
40
    {
41
        $this->status = $status;
42
    }
43
44
    /**
45
     * @return array
46
     */
47
    public function getFile()
48
    {
49
        return $this->file;
50
    }
51
52
    /**
53
     * @param array $file
54
     */
55
    public function setFile($file)
56
    {
57
        $this->file = $file;
58
    }
59
}
60