Passed
Branch master (47ccf4)
by Swen
03:12
created

GEOSWKBReader   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
eloc 1
c 1
b 0
f 1
dl 0
loc 30
rs 10
1
<?php
2
3
/**
4
 * GEOSWKBReader class stub.
5
 *
6
 * These stubs are required for IDEs to provide autocompletion and static code analysis during development.
7
 * They are not required for production.
8
 *
9
 * @see https://github.com/libgeos/libgeos/blob/svn-trunk/php/geos.c
10
 */
11
class GEOSWKBReader
12
{
13
    /**
14
     * Constructor.
15
     */
16
    public function __construct() {}
17
18
    /**
19
     * Reads a geometry out of the given WKB.
20
     *
21
     * @since 3.5.0
22
     *
23
     * @param string $wkb
24
     *
25
     * @return GEOSGeometry
26
     *
27
     * @throws \Exception If the WKB is not valid.
28
     */
29
    public function read($wkb) {}
30
31
    /**
32
     * Reads a geometry out of the given hex-encoded WKB.
33
     *
34
     * @param string $wkb
35
     *
36
     * @return GEOSGeometry
37
     *
38
     * @throws \Exception If the WKB is not valid.
39
     */
40
    public function readHEX($wkb) {}
41
}
42