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

Stubs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 4 1
A getStubFilename() 0 4 1
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
}