44
55use INTERMediator \FileMakerServer \RESTAPI \Supporting \FileMakerLayout ;
66use INTERMediator \FileMakerServer \RESTAPI \Supporting \FileMakerRelation ;
7+ use INTERMediator \FileMakerServer \RESTAPI \Supporting \CommunicationProvider ;
78use Exception ;
89
910/**
@@ -26,12 +27,13 @@ class FMDataAPI
2627 */
2728
2829 /**
29- * Keeping the FileMakerLayout object for each layout
30+ * @var FileMakerLayout[] Keeping the FileMakerLayout object for each layout.
3031 * @ignore
3132 */
3233 private $ layoutTable = [];
34+
3335 /**
34- * Keeping the CommunicationProvider object
36+ * @var null|CommunicationProvider Keeping the CommunicationProvider object.
3537 * @ignore
3638 */
3739 private $ provider = null ;
@@ -40,7 +42,7 @@ class FMDataAPI
4042 * FMDataAPI constructor. If you want to activate OAuth authentication, $user and $password are set as
4143 * oAuthRequestId and oAuthIdentifier. Moreover, call useOAuth method before accessing layouts.
4244 * @param string $solution The database file name which is just hosting.
43- * Every database must have the access privillege 'fmrest' including external data sources.
45+ * Every database must have the access privilege 'fmrest' including external data sources.
4446 * @param string $user The fmrest privilege accessible user to the database.
4547 * If you are going to call useOAuth method, you have to specify the data for X-FM-Data-OAuth-Request-Id.
4648 * @param string $password The password of above user.
@@ -51,7 +53,7 @@ class FMDataAPI
5153 * @param string $protocol FileMaker Server's protocol name. If omitted, 'https' is chosen.
5254 * @param array $fmDataSource Authentication information for external data sources.
5355 * Ex. [{"database"=>"<databaseName>", "username"=>"<username>", "password"=>"<password>"].
54- * If you use OAuth, "oAuthRequestId" and "oAuthIdentifier" keys have to be spedified .
56+ * If you use OAuth, "oAuthRequestId" and "oAuthIdentifier" keys have to be specified .
5557 * @param boolean $isUnitTest If it's set to true, the communication provider just works locally.
5658 */
5759 public function __construct (
@@ -163,7 +165,7 @@ public function setFieldHTMLEncoding($value)
163165 * Detect the return value of the field() method uses htmlspecialchars function or not.
164166 * @return bool The result.
165167 */
166- public function getFieldHTMLEncoding ($ value )
168+ public function getFieldHTMLEncoding ()
167169 {
168170 return $ this ->provider ->fieldHTMLEncoding ;
169171 }
@@ -226,7 +228,7 @@ public function errorCode()
226228 /**
227229 * The error message of the latest response from the REST API.
228230 * This error message is associated with FileMaker's error code.
229- * @return string The error messege .
231+ * @return string The error message .
230232 */
231233 public function errorMessage ()
232234 {
0 commit comments