1515 * @property string $<<field_name>> The field value named as the property name.
1616 * @property FileMakerRelation $<<portal_name>> FileMakerRelation object associated with the property name.
1717 * The table occurrence name of the portal can be the 'portal_name,' and also the object name of the portal.
18- * Ver * @version 32
18+ * @version 32
1919 * @author Masayuki Nii <nii@msyk.net>
2020 * @copyright 2017-2024 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
2121 */
@@ -107,7 +107,7 @@ public function getDataInfo(): object|array|null
107107 */
108108 public function getTargetTable (): null |string
109109 {
110- return ( $ this ->dataInfo ) ? $ this -> dataInfo -> table : null ;
110+ return $ this ->dataInfo -> table ?? null ;
111111 }
112112
113113 /**
@@ -118,8 +118,7 @@ public function getTargetTable(): null|string
118118 */
119119 public function getTotalCount (): null |int
120120 {
121- return ($ this ->dataInfo && property_exists ($ this ->dataInfo , 'totalRecordCount ' )) ?
122- $ this ->dataInfo ->totalRecordCount : null ;
121+ return $ this ->dataInfo ->totalRecordCount ?? null ;
123122 }
124123
125124 /**
@@ -131,7 +130,7 @@ public function getTotalCount(): null|int
131130 */
132131 public function getFoundCount (): null |int
133132 {
134- return ( $ this ->dataInfo ) ? $ this -> dataInfo -> foundCount : null ;
133+ return $ this ->dataInfo -> foundCount ?? null ;
135134 }
136135
137136 /**
@@ -143,7 +142,7 @@ public function getFoundCount(): null|int
143142 */
144143 public function getReturnedCount (): null |int
145144 {
146- return ( $ this ->dataInfo ) ? $ this -> dataInfo -> returnedCount : null ;
145+ return $ this ->dataInfo -> returnedCount ?? null ;
147146 }
148147
149148 /**
0 commit comments