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

TimestampableListenerStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFieldValue() 0 4 1
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