Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | protected function initDisplay($object): Display |
||
41 | { |
||
42 | $display = new PropertyAccessDisplay($object); |
||
43 | $display->add('id', 'Identity') |
||
44 | ->add('title') |
||
45 | ->add('date', null, [ |
||
46 | new Formatter\EmptyValue(), |
||
47 | new Formatter\DateTime('Y-m-d H:i:s') |
||
48 | ]) |
||
49 | ->add('visible', 'Visible', [ |
||
50 | new Formatter\Boolean('yes', 'no') |
||
51 | ]) |
||
52 | ->add('createdAt', null, [ |
||
53 | new Formatter\EmptyValue(), |
||
54 | new Formatter\DateTime('Y-m-d H:i:s') |
||
55 | ]) |
||
56 | ->add('creatorEmail'); |
||
57 | |||
58 | return $display; |
||
59 | } |
||
60 | } |
||
61 |