Passed
Push — master ( 5e6b25...984a75 )
by Swen
03:28
created

GEOSWKBWriter::write()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 0
c 1
b 0
f 1
dl 0
loc 1
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * GEOSWKBWriter 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 GEOSWKBWriter
12
{
13
    /**
14
     * Constructor.
15
     */
16
    public function __construct() {}
17
18
    /**
19
     * Returns the output dimension.
20
     *
21
     * @return int 2 or 2D, 3 for 3D.
22
     */
23
    public function getOutputDimension() {}
24
25
    /**
26
     * Sets the output dimension.
27
     *
28
     * @param int $dim 2 or 2D, 3 for 3D.
29
     *
30
     * @return void
31
     */
32
    public function setOutputDimension($dim) {}
0 ignored issues
show
Unused Code introduced by
The parameter $dim is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

32
    public function setOutputDimension(/** @scrutinizer ignore-unused */ $dim) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
33
34
    /**
35
     * Returns the output WKB byte order.
36
     *
37
     * @return int 0 for BIG endian, 1 for LITTLE endian.
38
     */
39
    public function getByteOrder() {}
40
41
    /**
42
     * Sets the output WKB byte order.
43
     *
44
     * @param int $byteOrder 0 for BIG endian, 1 for LITTLE endian.
45
     *
46
     * @return void
47
     */
48
    public function setByteOrder($byteOrder) {}
0 ignored issues
show
Unused Code introduced by
The parameter $byteOrder is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

48
    public function setByteOrder(/** @scrutinizer ignore-unused */ $byteOrder) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
49
50
    /**
51
     * Returns whether the output includes SRID.
52
     *
53
     * @return bool
54
     */
55
    public function getIncludeSRID() {}
56
57
    /**
58
     * Sets whether the output includes SRID.
59
     *
60
     * @param bool $inc
61
     *
62
     * @return void
63
     */
64
    public function setIncludeSRID($inc) {}
0 ignored issues
show
Unused Code introduced by
The parameter $inc is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

64
    public function setIncludeSRID(/** @scrutinizer ignore-unused */ $inc) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
65
66
    /**
67
     * Writes the given geometry as WKB.
68
     *
69
     * @since 3.5.0
70
     *
71
     * @param GEOSGeometry $geom
72
     *
73
     * @return string
74
     *
75
     * @throws \Exception If the geometry does not have a WKB representation, notably POINT EMPTY.
76
     */
77
    public function write(GEOSGeometry $geom) {}
0 ignored issues
show
Unused Code introduced by
The parameter $geom is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

77
    public function write(/** @scrutinizer ignore-unused */ GEOSGeometry $geom) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
78
79
    /**
80
     * Writes the given geometry as hex-encoded WKB.
81
     *
82
     * @param GEOSGeometry $geom
83
     *
84
     * @return string
85
     *
86
     * @throws \Exception If the geometry does not have a WKB representation, notably POINT EMPTY.
87
     */
88
    public function writeHEX(GEOSGeometry $geom) {}
0 ignored issues
show
Unused Code introduced by
The parameter $geom is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

88
    public function writeHEX(/** @scrutinizer ignore-unused */ GEOSGeometry $geom) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
89
}
90