Passed
Push — master ( 4ba5d0...423aca )
by Valentin
02:37
created

Stubs::getStubFilename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise;
5
6
class Stubs
7
{
8
    private const FILENAME = 'stubs' . DIRECTORY_SEPARATOR . 'proxy.stub';
9
10
    public function getContent(): string
11
    {
12
        return file_get_contents($this->getStubFilename());
13
    }
14
15
    private function getStubFilename(): string
16
    {
17
        return dirname(__DIR__) . DIRECTORY_SEPARATOR . self::FILENAME;
18
    }
19
}