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

GEOSWKTWriter   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 7
eloc 1
c 1
b 0
f 1
dl 0
loc 48
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutputDimension() 0 1 1
A setRoundingPrecision() 0 1 1
A setTrim() 0 1 1
A __construct() 0 1 1
A write() 0 1 1
A setOld3D() 0 1 1
A getOutputDimension() 0 1 1
1
<?php
2
3
/**
4
 * GEOSWKTWriter 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 GEOSWKTWriter
12
{
13
    /**
14
     * Constructor.
15
     */
16
    public function __construct() {}
17
18
    /**
19
     * @param GEOSGeometry $geom
20
     *
21
     * @return string
22
     *
23
     * @throws \Exception
24
     */
25
    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

25
    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...
26
27
    /**
28
     * @param bool $trim
29
     *
30
     * @return void
31
     */
32
    public function setTrim($trim) {}
0 ignored issues
show
Unused Code introduced by
The parameter $trim 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 setTrim(/** @scrutinizer ignore-unused */ $trim) {}

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
     * @param int $prec
36
     *
37
     * @return void
38
     */
39
    public function setRoundingPrecision($prec) {}
0 ignored issues
show
Unused Code introduced by
The parameter $prec 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

39
    public function setRoundingPrecision(/** @scrutinizer ignore-unused */ $prec) {}

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...
40
41
    /**
42
     * @param int $dim
43
     *
44
     * @return void
45
     */
46
    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

46
    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...
47
48
    /**
49
     * @return int
50
     */
51
    public function getOutputDimension() {}
52
53
    /**
54
     * @param bool $val
55
     *
56
     * @return void
57
     */
58
    public function setOld3D($val) {}
0 ignored issues
show
Unused Code introduced by
The parameter $val 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

58
    public function setOld3D(/** @scrutinizer ignore-unused */ $val) {}

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...
59
}
60