diff options
Diffstat (limited to 'src/structs/coordinate.php')
-rw-r--r-- | src/structs/coordinate.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/structs/coordinate.php b/src/structs/coordinate.php index 51b0736..7231228 100644 --- a/src/structs/coordinate.php +++ b/src/structs/coordinate.php @@ -53,6 +53,17 @@ class ezcGraphCoordinate extends ezcBaseStruct $this->x = $properties['x']; $this->y = $properties['y']; } + + /** + * Returns simple string representation of coordinate + * + * @return string + * @ignore + */ + public function __toString() + { + return sprintf( '( %.2f, %.2f )', $this->x, $this->y ); + } } ?> |