1<?php
2
3namespace geoPHP\Adapter;
4
5use geoPHP\Geometry\Geometry;
6
7/*
8 * (c) Patrick Hayes 2011
9 *
10 * This code is open-source and licenced under the Modified BSD License.
11 * For the full copyright and license information, please view the LICENSE
12 * file that was distributed with this source code.
13 */
14
15/**
16 * GeoAdapter : Interface of adapters
17 * for reading and writing to and from Geometry objects
18 *
19 */
20interface GeoAdapter
21{
22
23    /**
24     * Read input and return a Geometry
25     *
26     * @param string $input
27     * @return Geometry
28     */
29    public function read($input);
30
31    /**
32     * Write out a Geometry in the adapter's format
33     *
34     * @param Geometry $geometry
35     * @return string
36     */
37    public function write(Geometry $geometry);
38}
39