Init::getCreationDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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