1: <?php
2: namespace Contrib\Bundle\CoverallsV1Bundle\Entity;
3:
4: use Contrib\Bundle\CoverallsBundle\Entity\ArrayConvertable;
5:
6: /**
7: * Data for Coveralls API.
8: *
9: * @author Kitamura Satoshi <with.no.parachute@gmail.com>
10: */
11: abstract class Coveralls implements ArrayConvertable
12: {
13: /**
14: * String expression (convert to json).
15: *
16: * @return string
17: */
18: public function __toString()
19: {
20: return json_encode($this->toArray());
21: }
22: }
23: