Completed
Push — 1.5 ( c5bd05...970e37 )
by Rafał
10:47 queued 10s
created

TimestampableListenerStub::getFieldValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SWP\Behat\Service;
6
7
use SWP\Bundle\ContentBundle\EventListener\TimestampableListener;
8
use SWP\Component\Common\Model\DateTime;
9
10
class TimestampableListenerStub extends TimestampableListener
11
{
12
    protected function getFieldValue($meta, $field, $eventAdapter): \DateTimeInterface
13
    {
14
        return DateTime::getCurrentDateTime();
15
    }
16
}
17