2525
2626use CrEOF \Geo \WKT \Parser as StringParser ;
2727use CrEOF \Geo \WKB \Parser as BinaryParser ;
28- use CrEOF \Spatial \DBAL \Types \AbstractGeometryType ;
28+ use CrEOF \Spatial \DBAL \Types \AbstractSpatialType ;
2929use CrEOF \Spatial \DBAL \Types \GeographyType ;
3030use CrEOF \Spatial \Exception \InvalidValueException ;
3131use CrEOF \Spatial \PHP \Types \Geometry \GeometryInterface ;
3939abstract class AbstractPlatform implements PlatformInterface
4040{
4141 /**
42- * @param AbstractGeometryType $type
43- * @param string $sqlExpr
42+ * @param AbstractSpatialType $type
43+ * @param string $sqlExpr
4444 *
4545 * @return GeometryInterface
4646 */
47- public function convertStringToPHPValue (AbstractGeometryType $ type , $ sqlExpr )
47+ public function convertStringToPHPValue (AbstractSpatialType $ type , $ sqlExpr )
4848 {
4949 $ parser = new StringParser ($ sqlExpr );
5050
5151 return $ this ->newObjectFromValue ($ type , $ parser ->parse ());
5252 }
5353
5454 /**
55- * @param AbstractGeometryType $type
56- * @param string $sqlExpr
55+ * @param AbstractSpatialType $type
56+ * @param string $sqlExpr
5757 *
5858 * @return GeometryInterface
5959 */
60- public function convertBinaryToPHPValue (AbstractGeometryType $ type , $ sqlExpr )
60+ public function convertBinaryToPHPValue (AbstractSpatialType $ type , $ sqlExpr )
6161 {
6262 $ parser = new BinaryParser ($ sqlExpr );
6363
6464 return $ this ->newObjectFromValue ($ type , $ parser ->parse ());
6565 }
6666
6767 /**
68- * @param AbstractGeometryType $type
69- * @param GeometryInterface $value
68+ * @param AbstractSpatialType $type
69+ * @param GeometryInterface $value
7070 *
7171 * @return string
7272 */
73- public function convertToDatabaseValue (AbstractGeometryType $ type , GeometryInterface $ value )
73+ public function convertToDatabaseValue (AbstractSpatialType $ type , GeometryInterface $ value )
7474 {
7575 return sprintf ('%s(%s) ' , strtoupper ($ value ->getType ()), $ value );
7676 }
7777
7878 /**
7979 * Get an array of database types that map to this Doctrine type.
8080 *
81- * @param AbstractGeometryType $type
81+ * @param AbstractSpatialType $type
8282 *
8383 * @return string[]
8484 */
85- public function getMappedDatabaseTypes (AbstractGeometryType $ type )
85+ public function getMappedDatabaseTypes (AbstractSpatialType $ type )
8686 {
8787 $ sqlType = strtolower ($ type ->getSQLType ());
8888
@@ -96,13 +96,13 @@ public function getMappedDatabaseTypes(AbstractGeometryType $type)
9696 /**
9797 * Create spatial object from parsed value
9898 *
99- * @param AbstractGeometryType $type
100- * @param array $value
99+ * @param AbstractSpatialType $type
100+ * @param array $value
101101 *
102102 * @return GeometryInterface
103103 * @throws \CrEOF\Spatial\Exception\InvalidValueException
104104 */
105- private function newObjectFromValue (AbstractGeometryType $ type , $ value )
105+ private function newObjectFromValue (AbstractSpatialType $ type , $ value )
106106 {
107107 $ typeFamily = $ type ->getTypeFamily ();
108108 $ typeName = strtoupper ($ value ['type ' ]);
0 commit comments