StandardDateFactory::toUnixTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Popy\Calendar\Converter\UnixTimeConverter;
4
5
use Popy\Calendar\Converter\Conversion;
6
use Popy\Calendar\Converter\UnixTimeConverterInterface;
7
use Popy\Calendar\ValueObject\DateRepresentation\Standard;
8
9
/**
10
 * Instanciates a Gregorian date representation to initialize a Conversion->to
11
 * property. Has to be (one of) the first element in a chain.
12
 */
13
class StandardDateFactory implements UnixTimeConverterInterface
14
{
15
    /**
16
     * @inheritDoc
17
     */
18
    public function fromUnixTime(Conversion $conversion)
19
    {
20
        $conversion->setTo(new Standard());
21
    }
22
23
    /**
24
     * @inheritDoc
25
     */
26
    public function toUnixTime(Conversion $conversion)
27
    {
28
    }
29
}
30