Passed
Push — master ( d426ba...3a61d1 )
by Chris
14:30
created

InteractsWithStorage::path()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Meema\MediaRecognition\Traits;
4
5
trait InteractsWithStorage
6
{
7
    /**
8
     * The disk of where the file to analyze is stored.
9
     *
10
     * @var string
11
     */
12
    protected string $disk;
13
14
    /**
15
     * The path of the file to analyze.
16
     *
17
     * @var string
18
     */
19
    protected string $path;
20
21
    /**
22
     * Set where to store the converted file.
23
     *
24
     * @param string $disk
25
     *
26
     * @return $this
27
     */
28
    public function disk(string $disk)
29
    {
30
        $this->disk = $disk;
31
32
        return $this;
33
    }
34
35
    /**
36
     * Set where to store the converted file.
37
     *
38
     * @param string $path
39
     *
40
     * @return $this
41
     */
42
    public function path(string $path)
43
    {
44
        $this->path = $path;
45
46
        return $this;
47
    }
48
}
49