Passed
Push — main ( b5ba77...7d6ead )
by Breno
01:45
created

IsPast   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace BrenoRoosevelt\Validation\Rules\DateTime;
5
6
use Attribute;
7
8
#[Attribute(Attribute::TARGET_PROPERTY)]
9
class IsPast extends LessThan
10
{
11
    public function __construct(?string $message = 'The date/time should be in the past')
12
    {
13
        parent::__construct('now', $message);
14
    }
15
}
16