Completed
Push — master ( 2e3006...6d7353 )
by Michal
09:16 queued 05:53
created
src/ShapeFile.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
 
53 53
     public $records;
54 54
 
55
+    /**
56
+     * @param integer $shapeType
57
+     */
55 58
     public function __construct($shapeType, $boundingBox = array("xmin" => 0.0, "ymin" => 0.0, "xmax" => 0.0, "ymax" => 0.0), $FileName = NULL) {
56 59
         $this->shapeType = $shapeType;
57 60
         $this->boundingBox = $boundingBox;
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
         $this->fileLength = 50; // The value for file length is the total length of the file in 16-bit words (including the fifty 16-bit words that make up the header).
60 63
     }
61 64
 
65
+    /**
66
+     * @param string $FileName
67
+     */
62 68
     public function loadFromFile($FileName) {
63 69
         $this->FileName = $FileName;
64 70
 
@@ -72,6 +78,9 @@  discard block
 block discarded – undo
72 78
         }
73 79
     }
74 80
 
81
+    /**
82
+     * @param string $FileName
83
+     */
75 84
     public function saveToFile($FileName = NULL) {
76 85
         if ($FileName != NULL) {
77 86
             $this->FileName = $FileName;
@@ -88,6 +97,9 @@  discard block
 block discarded – undo
88 97
         }
89 98
     }
90 99
 
100
+    /**
101
+     * @param ShapeRecord $record
102
+     */
91 103
     public function addRecord($record) {
92 104
         if ((isset($this->DBFHeader)) && (is_array($this->DBFHeader))) {
93 105
             $record->updateDBFInfo($this->DBFHeader);
@@ -351,6 +363,9 @@  discard block
 block discarded – undo
351 363
         }
352 364
     }
353 365
 
366
+    /**
367
+     * @param string $error
368
+     */
354 369
     public function setError($error) {
355 370
         $this->lastError = $error;
356 371
         return false;
Please login to merge, or discard this patch.