Passed
Pull Request — master (#27)
by Stephen
02:38
created

Accessors   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 3 1
A getOutput() 0 3 1
A getUrl() 0 3 1
1
<?php
2
3
namespace Sfneal\ViewExport\Pdf\Utils;
4
5
trait Accessors
6
{
7
    /**
8
     * @var string|null AWS S3 file path
9
     */
10
    private $path;
11
12
    /**
13
     * @var string|null AWS S3 file URL
14
     */
15
    private $url;
16
17
    /**
18
     * @var string|null
19
     */
20
    private $output;
21
22
    /**
23
     * Retrieve the PDF's output.
24
     *
25
     * @return string
26
     */
27
    public function getOutput(): string
28
    {
29
        return $this->output;
30
    }
31
32
    /**
33
     * Retrieve the PDF's AWS S3 path.
34
     *
35
     * @return string|null
36
     */
37
    public function getPath(): ?string
38
    {
39
        return $this->path;
40
    }
41
42
    /**
43
     * Retrieve the PDF's AWS S3 url.
44
     *
45
     * @return string|null
46
     */
47
    public function getUrl(): ?string
48
    {
49
        return $this->url;
50
    }
51
}
52