Passed
Push — master ( 617e52...ff4e9f )
by Arthur
35:51
created

Stub   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getPath() 0 3 1
A getOptions() 0 2 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 08.03.19
6
 * Time: 18:28.
7
 */
8
9
namespace Foundation\Generator\Support;
10
11
class Stub extends \Nwidart\Modules\Support\Stub
12
{
13
    /**
14
     * Get stub path.
15
     *
16
     * @return string
17
     */
18
    public function getPath()
19
    {
20
        return get_foundation_path() . '/Generator/Stubs/' . $this->path;
21
    }
22
23 23
    public function getName()
24
    {
25 23
        return $this->path;
26
    }
27
28 23
    public function getOptions() :array {
29 23
        return $this->getReplaces();
30
    }
31
}
32