You are here

class GeoPHPWrapper in Geofield 8

Provides a geoPHP Wrapper class.

Hierarchy

Expanded class hierarchy of GeoPHPWrapper

1 file declares its use of GeoPHPWrapper
ConstraintsTest.php in tests/src/Kernel/ConstraintsTest.php
1 string reference to 'GeoPHPWrapper'
geofield.services.yml in ./geofield.services.yml
geofield.services.yml
1 service uses GeoPHPWrapper
geofield.geophp in ./geofield.services.yml
Drupal\geofield\GeoPHP\GeoPHPWrapper

File

src/GeoPHP/GeoPHPWrapper.php, line 8

Namespace

Drupal\geofield\GeoPHP
View source
class GeoPHPWrapper implements GeoPHPInterface {

  /**
   * {@inheritdoc}
   */
  public function version() {
    return \geoPHP::version();
  }

  /**
   * {@inheritdoc}
   */
  public function load($data = NULL, $type = NULL) {
    try {
      return call_user_func_array([
        '\\geoPHP',
        'load',
      ], func_get_args());
    } catch (\Exception $e) {
      return NULL;
    }
  }

  /**
   * {@inheritdoc}
   */
  public function getAdapterMap() {
    return call_user_func_array([
      '\\geoPHP',
      'getAdapterMap',
    ], func_get_args());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GeoPHPWrapper::getAdapterMap public function Get the Adapter Map. Overrides GeoPHPInterface::getAdapterMap
GeoPHPWrapper::load public function Loads a geometry object given some parameters. Overrides GeoPHPInterface::load
GeoPHPWrapper::version public function Retrieves the GeoPHP library current version. Overrides GeoPHPInterface::version