Completed
Push — master ( f0448f...4201d1 )
by Julien
14s
created

DockerComposeFile::getFilename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace TheAentMachine\AentDockerCompose\DockerCompose;
3
4
class DockerComposeFile
5
{
6
    /** @var \SplFileInfo */
7
    private $file;
8
9
    /**
10
     * DockerComposeFile constructor.
11
     * @param \SplFileInfo $file
12
     */
13
    public function __construct(\SplFileInfo $file)
14
    {
15
        $this->file = $file;
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function getFilename(): string
22
    {
23
        return $this->file->getFilename();
24
    }
25
}
26