Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
PhpPersistence | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
2 / 2 |
__construct(/* logger, output ? */) | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
write(PhpFile $aFile) | |
100.00% |
1 / 1 |
1 |
<?php | |
/* | |
* Mondrian | |
*/ | |
namespace Trismegiste\Mondrian\Parser; | |
/** | |
* PhpPersistence is an abstract template for persisting a PhpFile | |
*/ | |
abstract class PhpPersistence | |
{ | |
protected $prettyPrinter; | |
public function __construct(/* logger, output ? */) | |
{ | |
$this->prettyPrinter = new \PHPParser_PrettyPrinter_Default(); | |
} | |
/** | |
* Persist the file | |
* | |
* @param \Trismegiste\Mondrian\Parser\PhpFile $aFile | |
*/ | |
abstract public function write(PhpFile $aFile); | |
} |