PHP Classes

File: src/FeatureTypes/FeatureTypesEnum.php

Recommend this page to a friend!
  Classes of Niko Peikrishvili   PHP GeoJson Library   src/FeatureTypes/FeatureTypesEnum.php   Download  
File: src/FeatureTypes/FeatureTypesEnum.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP GeoJson Library
Parse and validate GeoJSON string, array or object
Author: By
Last change:
Date: 23 days ago
Size: 428 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
GeoJSON\FeatureTypes;

enum FeatureTypesEnum: string
{
    case
POINT = 'Point';
    case
MULTI_POINT = 'MultiPoint';
    case
POLYGON = 'Polygon';
    case
MULTI_POLYGON = 'MultiPolygon';
    case
LINE_STRING = 'LineString';
    case
MULTI_LINE_STRING = 'MultiLineString';

    public static function
values(): array
    {
        return
array_column(self::cases(), 'value');
    }
}