@@ -147,7 +147,7 @@ public function setAPIVersion(int $vNum): void
147147 */
148148 public function setCertValidating (bool $ value ): void
149149 {
150- $ this ->provider ->isCertVaridating = $ value ;
150+ $ this ->provider ->isCertValidating = $ value ;
151151 }
152152
153153 /**
@@ -207,7 +207,7 @@ public function curlErrorCode(): int
207207 * The error message of curl, text representation of code.
208208 * @return string The error message of curl.
209209 */
210- public function curlErrorMessage (): string
210+ public function curlErrorMessage (): null | string
211211 {
212212 return $ this ->provider ->curlError ;
213213 }
@@ -237,7 +237,7 @@ public function errorCode(): int
237237 * This error message is associated with FileMaker's error code.
238238 * @return string The error message.
239239 */
240- public function errorMessage (): string
240+ public function errorMessage (): null | string
241241 {
242242 return $ this ->provider ->errorMessage ;
243243 }
@@ -302,58 +302,58 @@ public function setGlobalField(array $fields): void
302302
303303 /**
304304 * Get the product information, such as the version, etc. This isn't required to authenticate.
305- * @return object The information of this FileMaker product. Ex.:
305+ * @return null| object The information of this FileMaker product. Ex.:
306306 * {'name' => 'FileMaker Data API Engine', 'buildDate' => '03/27/2019', 'version' => '18.0.1.109',
307307 * 'dateFormat' => 'MM/dd/yyyy', 'timeFormat' => 'HH:mm:ss', 'timeStampFormat' => 'MM/dd/yyyy HH:mm:ss'}.
308308 * @throws Exception In case of any error, an exception arises.
309309 */
310- public function getProductInfo (): object
310+ public function getProductInfo (): null | object
311311 {
312312 return $ this ->provider ->getProductInfo ();
313313 }
314314
315315 /**
316316 * Get the information about hosting database. It includes the target database and others in FileMaker Server.
317317 * This is required to authenticate.
318- * @return array The information of hosting databases. Every element is an object and just having 'name'
318+ * @return null| array The information of hosting databases. Every element is an object and just having 'name'
319319 * property.Ex.: [{"name": "TestDB"},{"name": "sample_db"}]
320320 * @throws Exception In case of any error, an exception arises.
321321 */
322- public function getDatabaseNames (): array
322+ public function getDatabaseNames (): null | array
323323 {
324324 return $ this ->provider ->getDatabaseNames ();
325325 }
326326
327327 /**
328328 * Get the list of layout name in a database.
329- * @return array The information of layouts in the target database. Every element is an object and just having 'name'
329+ * @return null| array The information of layouts in the target database. Every element is an object and just having 'name'
330330 * property.
331331 * Ex.: [{"name": "person_layout"},{"name": "contact_to"},{"name": "history_to"}...]
332332 * @throws Exception In case of any error, an exception arises.
333333 */
334- public function getLayoutNames (): array
334+ public function getLayoutNames (): null | array
335335 {
336336 return $ this ->provider ->getLayoutNames ();
337337 }
338338
339339 /**
340340 * Get the list of script name in database.
341- * @return array The information of scripts in the target database. Every element is an object and having 'name' property.
341+ * @return null| array The information of scripts in the target database. Every element is an object and having 'name' property.
342342 * The 'isFolder' property is true if it's a folder item, and it has the 'folderScriptNames' property and includes
343343 * an object with the same structure.
344344 * Ex.: [{"name": "TestScript1","isFolder": false},{"name": "TestScript2","isFolder": false},{"name": "Maintenance",
345345 * "isFolder": true, "folderScriptNames": [{"name": "DataImport","isFolder": false}]}]
346346 * @throws Exception In case of any error, an exception arises.
347347 */
348- public function getScriptNames (): array
348+ public function getScriptNames (): null | array
349349 {
350350 return $ this ->provider ->getScriptNames ();
351351 }
352352
353353 /**
354354 * Get the table occurrence name of just a previous query.
355355 * Usually this method returns the information of the FileMakerRelation class.
356- * @return string The table name.
356+ * @return null| string The table name.
357357 * @see FileMakerRelation::getTargetTable()
358358 */
359359 public function getTargetTable (): null |string
@@ -364,32 +364,32 @@ public function getTargetTable(): null|string
364364 /**
365365 * Get the total record count of just a previous query.
366366 * Usually this method returns the information of the FileMakerRelation class.
367- * @return int The total record count.
367+ * @return null| int The total record count.
368368 * @see FileMakerRelation::getTotalCount()
369369 */
370- public function getTotalCount (): int
370+ public function getTotalCount (): null | int
371371 {
372372 return $ this ->provider ->totalCount ;
373373 }
374374
375375 /**
376376 * Get the founded record count of just a previous query.
377377 * Usually this method returns the information of the FileMakerRelation class.
378- * @return int The founded record count.
379- * @see FileMakerRelation::getFoundCount()
378+ * @return null| int The founded record count.
379+ * @see FileMakerRelation::getFoundCount(): null|int
380380 */
381- public function getFoundCount (): int
381+ public function getFoundCount (): null | int
382382 {
383383 return $ this ->provider ->foundCount ;
384384 }
385385
386386 /**
387387 * Get the returned record count of just a previous query.
388388 * Usually this method returns the information of the FileMakerRelation class.
389- * @return int The returned record count.
389+ * @return null| int The returned record count.
390390 * @see FileMakerRelation::getReturnedCount()
391391 */
392- public function getReturnedCount (): int
392+ public function getReturnedCount (): null | int
393393 {
394394 return $ this ->provider ->returnedCount ;
395395 }
0 commit comments