Completed
Push — master ( 76318b...54792c )
by Alexander
02:49
created

MigrationCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
A addMigration() 0 3 1
1
<?php
2
3
4
namespace Quantick\DeployMigration\Lib\Service;
5
6
7
use Illuminate\Support\Collection;
8
use Quantick\DeployMigration\Lib\DeployMigration;
9
10
class MigrationCollection extends Collection
11
{
12
    public static function create()
13
    {
14
        return new static();
15
    }
16
17
    public function addMigration(DeployMigration $migration)
18
    {
19
        $this->push($migration);
20
    }
21
}