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

AbstractLocation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
A jsonSerialize() 0 4 1
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
}