Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
FormatterRow
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __get
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 __set
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Flow\Formatter;
4
5use Flow\Model\AbstractRevision;
6use Flow\Model\PostRevision;
7use Flow\Model\Workflow;
8use LogicException;
9
10/**
11 * Helper class represents a row of data from AbstractQuery
12 */
13class FormatterRow {
14    /** @var AbstractRevision */
15    public $revision;
16    /** @var AbstractRevision|null */
17    public $previousRevision;
18    /** @var AbstractRevision */
19    public $currentRevision;
20    /** @var Workflow */
21    public $workflow;
22    /** @var string */
23    public $indexFieldName;
24    /** @var string */
25    public $indexFieldValue;
26    /** @var PostRevision|null */
27    public $rootPost;
28    /** @var bool */
29    public $isLastReply = false;
30    /** @var bool */
31    public $isFirstReply = false;
32
33    /**
34     * Protect against typos
35     * @param string $attribute
36     * @return never
37     */
38    public function __get( $attribute ) {
39        throw new LogicException( "Accessing non-existent parameter: $attribute" );
40    }
41
42    /**
43     * Protect against typos
44     * @param string $attribute
45     * @param mixed $value
46     * @return never
47     */
48    public function __set( $attribute, $value ) {
49        throw new LogicException( "Accessing non-existent parameter: $attribute" );
50    }
51}