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

Accessors::getPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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