Completed
Push — b0.25.0 ( 535bde...57b0c8 )
by Sebastian
07:17
created

RouteCollection::toArray()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 10
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 2
1
<?php
2
3
/**
4
 * Linna Framework.
5
 *
6
 * @author Sebastian Rapetti <[email protected]>
7
 * @copyright (c) 2018, Sebastian Rapetti
8
 * @license http://opensource.org/licenses/MIT MIT License
9
 */
10
declare(strict_types=1);
11
12
namespace Linna\Router;
13
14
use Linna\TypedObjectArray;
15
16
/**
17
 * Route Collection
18
 */
19
class RouteCollection extends TypedObjectArray
20
{
21
    /**
22
     * Contructor.
23
     *
24
     * @param array $array
25
     */
26 74
    public function __construct(array $array = [])
27
    {
28 74
        parent::__construct(Route::class, $array);
29 73
    }
30
}
31