Init   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCreationDate() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Files\Databases\Migrations;
6
7
use AbterPhp\Framework\Databases\Migrations\BaseMigration;
8
use DateTime;
9
10
class Init extends BaseMigration
11
{
12
    const FILENAME = 'files.sql';
13
14
    /**
15
     * Gets the creation date, which is used for ordering
16
     *
17
     * @return DateTime The date this migration was created
18
     */
19
    public static function getCreationDate(): DateTime
20
    {
21
        return DateTime::createFromFormat(DateTime::ATOM, '2019-02-28T21:02:00+00:00');
22
    }
23
}
24