Passed
Pull Request — master (#2)
by Riikka
02:22
created

AbstractEntryProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 3 1
1
<?php
2
3
namespace Simply\Container;
4
5
/**
6
 * Abstract entry provider that provides the most basic provider initialization functionality.
7
 *
8
 * @author Riikka Kalliomäki <[email protected]>
9
 * @copyright Copyright (c) 2018 Riikka Kalliomäki
10
 * @license http://opensource.org/licenses/mit-license.php MIT License
11
 */
12
abstract class AbstractEntryProvider implements EntryProvider
13
{
14
    /**
15
     * Returns a new instance of the entry provider.
16
     * @return EntryProvider New entry provider instance initialized with default constructor
17
     */
18 2
    public static function initialize(): EntryProvider
19
    {
20 2
        return new static();
21
    }
22
}
23