Passed
Branch master (bbfb46)
by Jan
22:41 queued 14:44
created

PlatformUpdatesDocument   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Docs\Convert;
4
5
use Symfony\Component\Finder\SplFileInfo;
6
7
class PlatformUpdatesDocument extends Document
8
{
9
    /**
10
     * @var \DateTimeInterface
11
     */
12
    private $date;
13
14
    public function __construct(\DateTimeInterface $date, SplFileInfo $file, bool $isCatgory, string $baseUrl)
15
    {
16
        parent::__construct($file, $isCatgory, $baseUrl);
17
18
        $this->date = $date;
19
    }
20
21
    public function getDate(): \DateTimeInterface
22
    {
23
        return $this->date;
24
    }
25
}
26