formatDateTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\PunchoutCatalogs\Dependency\Service;
9
10
class PunchoutCatalogsToUtilDateTimeServiceBridge implements PunchoutCatalogsToUtilDateTimeServiceInterface
11
{
12
    /**
13
     * @var \Spryker\Service\UtilDateTime\UtilDateTimeServiceInterface
14
     */
15
    protected $utilDateTimeService;
16
17
    /**
18
     * @param \Spryker\Service\UtilDateTime\UtilDateTimeServiceInterface $utilDateTimeService
19
     */
20
    public function __construct($utilDateTimeService)
21
    {
22
        $this->utilDateTimeService = $utilDateTimeService;
23
    }
24
25
    /**
26
     * @param \DateTime|string $date
27
     *
28
     * @return string
29
     */
30
    public function formatDateTime($date)
31
    {
32
        return $this->utilDateTimeService->formatDateTime($date);
33
    }
34
}
35