CrEOF\Spatial\DBAL\Platform\AbstractPlatform::convertStringToPHPValue PHP Method

convertStringToPHPValue() public method

public convertStringToPHPValue ( CrEOF\Spatial\DBAL\Types\AbstractSpatialType $type, string $sqlExpr ) : CrEOF\Spatial\PHP\Types\Geometry\GeometryInterface
$type CrEOF\Spatial\DBAL\Types\AbstractSpatialType
$sqlExpr string
return CrEOF\Spatial\PHP\Types\Geometry\GeometryInterface
    public function convertStringToPHPValue(AbstractSpatialType $type, $sqlExpr)
    {
        $parser = new StringParser($sqlExpr);
        return $this->newObjectFromValue($type, $parser->parse());
    }