Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 2
GeoPointIndexField
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 __construct
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
<?php
namespace GeoData\Search;
use CirrusSearch\Search\CirrusIndexField;
use CirrusSearch\SearchConfig;
/**
 * GeoPoint type for CirrusSearch mapping
 */
class GeoPointIndexField extends CirrusIndexField {
    /**
     * @var string
     */
    protected $typeName = 'geo_point';
    /**
     * @param string $name name of the field
     * @param SearchConfig $config CirrusSearch config
     */
    public function __construct( $name, SearchConfig $config ) {
        parent::__construct( $name, $this->typeName, $config );
    }
}