Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
2 / 2 |
NullFormatter | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
2 / 2 |
format | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
formatDateRepresentation | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
namespace Popy\Calendar\Formatter; | |
use DateTimeInterface; | |
use Popy\Calendar\FormatterInterface; | |
use Popy\Calendar\ValueObject\DateRepresentationInterface; | |
class NullFormatter implements FormatterInterface | |
{ | |
/** | |
* @inheritDoc | |
*/ | |
public function format(DateTimeInterface $input, $format) | |
{ | |
return ''; | |
} | |
/** | |
* @inheritDoc | |
*/ | |
public function formatDateRepresentation(DateRepresentationInterface $input, $format) | |
{ | |
return ''; | |
} | |
} |