Completed
Push — master ( fee5c0...198545 )
by Taosikai
13:38
created

AbstractLocation::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Slince shipment tracker library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Slince\ShipmentTracking\Foundation\Location;
7
8
abstract class AbstractLocation implements LocationInterface
9
{
10
    /**
11
     * Converts to string
12
     * @return string
13
     */
14
    public function __toString()
15
    {
16
        return $this->toString();
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function jsonSerialize()
23
    {
24
        return $this->toString();
25
    }
26
}