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

DockerComposeFile   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getFilename() 0 3 1
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