Completed
Push — master ( 3cc9b0...d35865 )
by Timur
02:56
created

ConfigFileCommand::usingFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Laravel\Forge\Configs\Commands;
4
5
use Laravel\Forge\Commands\ResourceCommand;
6
7
abstract class ConfigFileCommand extends ResourceCommand
8
{
9
    /**
10
     * Configuration file name.
11
     *
12
     * @var string
13
     */
14
    protected $configFile = '';
15
16
    /**
17
     * Set configuration file name.
18
     *
19
     * @param string $file
20
     *
21
     * @return static
22
     */
23
    public function usingFile(string $file)
24
    {
25
        $this->configFile = $file;
26
27
        return $this;
28
    }
29
30
    /**
31
     * Resource path.
32
     *
33
     * @return string
34
     */
35
    public function resourcePath()
36
    {
37
        return $this->configFile;
38
    }
39
}
40