Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 1 | public function serialise(EntityInterface $entity) |
|
26 | { |
||
27 | 1 | $properties = []; |
|
28 | 1 | $properties[] = $entity->getAnchorPoint(); |
|
|
|||
29 | 1 | $properties[] = $entity->getXPos(); |
|
30 | 1 | $properties[] = $entity->getYPos(); |
|
31 | 1 | $properties[] = $entity->getWidth(); |
|
32 | 1 | $properties[] = $entity->getHeight(); |
|
33 | 1 | $properties[] = $entity->getOrion(); |
|
34 | 1 | $properties[] = $this->stringEscaper->escape($entity->getDescription()); |
|
35 | 1 | $properties[] = $entity->getThickness(); |
|
36 | 1 | $properties[] = $entity->getArc(); |
|
37 | 1 | $properties[] = $entity->getPhantomField(); |
|
38 | |||
39 | 1 | return implode(',', $properties); |
|
40 | } |
||
42 |