Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| PostViewQuery | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| createRevision | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Flow\Formatter; |
| 4 | |
| 5 | use Flow\Model\UUID; |
| 6 | |
| 7 | class PostViewQuery extends RevisionViewQuery { |
| 8 | |
| 9 | /** |
| 10 | * @inheritDoc |
| 11 | */ |
| 12 | protected function createRevision( $revId ) { |
| 13 | if ( !$revId instanceof UUID ) { |
| 14 | $revId = UUID::create( $revId ); |
| 15 | } |
| 16 | |
| 17 | return $this->storage->get( |
| 18 | 'PostRevision', |
| 19 | $revId |
| 20 | ); |
| 21 | } |
| 22 | } |