Passed
Pull Request — master (#1)
by Peter
03:06
created

WebsiteLists::getCreationDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
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\Website\Databases\Migrations;
6
7
use AbterPhp\Framework\Databases\Migrations\BaseMigration;
8
use DateTime;
9
10
class WebsiteLists extends BaseMigration
11
{
12
    const FILENAME = 'website-lists.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-12-13T18:52:00+00:00');
0 ignored issues
show
Bug Best Practice introduced by
The expression return DateTime::createF...-12-13T18:52:00+00:00') could return the type false which is incompatible with the type-hinted return DateTime. Consider adding an additional type-check to rule them out.
Loading history...
22
    }
23
}
24