Passed
Push — master ( ed297f...604ea4 )
by Giuliano
04:39
created

Samurai   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A theme() 0 3 1
A base() 0 3 1
A wizard() 0 3 1
1
<?php
2
3
namespace Maestriam\Samurai\Entities;
4
5
use Maestriam\Samurai\Contracts\Entities\SamuraiContract;
6
7
class Samurai implements SamuraiContract
8
{
9
    /**
10
     * {@inheritDoc}
11
     */
12
    public function base() : Base
13
    {
14
        return new Base();
15
    }
16
17
    /**
18
     * {@inheritDoc}
19
     */
20
    public function theme(string $package) : Theme
21
    {
22
        return new Theme($package);
23
    }
24
25
    /**
26
     * {@inheritDoc}
27
     */
28
    public function wizard() : Wizard
29
    {
30
        return new Wizard();
31
    }
32
}
33