@@ -326,9 +326,9 @@ abstract protected function doFind(bool $singleton, $id = null);
326326 *
327327 * @param string $columnName Column Name
328328 *
329- * @throws DataException
330- *
331329 * @return array|null The resulting row of data, or null if no data found.
330+ *
331+ * @throws DataException
332332 */
333333 abstract protected function doFindColumn (string $ columnName );
334334
@@ -392,9 +392,9 @@ abstract protected function doUpdate($id = null, $data = null): bool;
392392 * @param int $batchSize The size of the batch to run
393393 * @param bool $returnSQL True means SQL is returned, false will execute the query
394394 *
395- * @throws DatabaseException
396- *
397395 * @return mixed Number of rows affected or FALSE on failure
396+ *
397+ * @throws DatabaseException
398398 */
399399 abstract protected function doUpdateBatch (?array $ set = null , ?string $ index = null , int $ batchSize = 100 , bool $ returnSQL = false );
400400
@@ -405,9 +405,9 @@ abstract protected function doUpdateBatch(?array $set = null, ?string $index = n
405405 * @param array|int|string|null $id The rows primary key(s)
406406 * @param bool $purge Allows overriding the soft deletes setting.
407407 *
408- * @throws DatabaseException
409- *
410408 * @return bool|string
409+ *
410+ * @throws DatabaseException
411411 */
412412 abstract protected function doDelete ($ id = null , bool $ purge = false );
413413
@@ -541,9 +541,9 @@ public function find($id = null)
541541 *
542542 * @param string $columnName Column Name
543543 *
544- * @throws DataException
545- *
546544 * @return array|null The resulting row of data, or null if no data found.
545+ *
546+ * @throws DataException
547547 */
548548 public function findColumn (string $ columnName )
549549 {
@@ -693,9 +693,9 @@ public function getInsertID()
693693 * @param array|object|null $data Data
694694 * @param bool $returnID Whether insert ID should be returned or not.
695695 *
696- * @throws ReflectionException
697- *
698696 * @return bool|int|string insert ID or true on success. false on failure.
697+ *
698+ * @throws ReflectionException
699699 */
700700 public function insert ($ data = null , bool $ returnID = true )
701701 {
@@ -767,9 +767,9 @@ public function insert($data = null, bool $returnID = true)
767767 * @param int $batchSize The size of the batch to run
768768 * @param bool $testing True means only number of records is returned, false will execute the query
769769 *
770- * @throws ReflectionException
771- *
772770 * @return bool|int Number of rows inserted or FALSE on failure
771+ *
772+ * @throws ReflectionException
773773 */
774774 public function insertBatch (?array $ set = null , ?bool $ escape = null , int $ batchSize = 100 , bool $ testing = false )
775775 {
@@ -882,10 +882,10 @@ public function update($id = null, $data = null): bool
882882 * @param int $batchSize The size of the batch to run
883883 * @param bool $returnSQL True means SQL is returned, false will execute the query
884884 *
885+ * @return mixed Number of rows affected or FALSE on failure
886+ *
885887 * @throws DatabaseException
886888 * @throws ReflectionException
887- *
888- * @return mixed Number of rows affected or FALSE on failure
889889 */
890890 public function updateBatch (?array $ set = null , ?string $ index = null , int $ batchSize = 100 , bool $ returnSQL = false )
891891 {
@@ -937,9 +937,9 @@ public function updateBatch(?array $set = null, ?string $index = null, int $batc
937937 * @param array|int|string|null $id The rows primary key(s)
938938 * @param bool $purge Allows overriding the soft deletes setting.
939939 *
940- * @throws DatabaseException
941- *
942940 * @return BaseResult|bool
941+ *
942+ * @throws DatabaseException
943943 */
944944 public function delete ($ id = null , bool $ purge = false )
945945 {
@@ -1153,9 +1153,9 @@ protected function doProtectFields(array $data): array
11531153 *
11541154 * @param int|null $userData An optional PHP timestamp to be converted.
11551155 *
1156- * @throws ModelException
1157- *
11581156 * @return mixed
1157+ *
1158+ * @throws ModelException
11591159 */
11601160 protected function setDate (?int $ userData = null )
11611161 {
@@ -1177,9 +1177,9 @@ protected function setDate(?int $userData = null)
11771177 *
11781178 * @param int $value value
11791179 *
1180- * @throws ModelException
1181- *
11821180 * @return int|string
1181+ *
1182+ * @throws ModelException
11831183 */
11841184 protected function intToDate (int $ value )
11851185 {
@@ -1440,9 +1440,9 @@ public function allowCallbacks(bool $val = true)
14401440 * @param string $event Event
14411441 * @param array $eventData Event Data
14421442 *
1443- * @throws DataException
1444- *
14451443 * @return mixed
1444+ *
1445+ * @throws DataException
14461446 */
14471447 protected function trigger (string $ event , array $ eventData )
14481448 {
@@ -1501,9 +1501,9 @@ public function asObject(string $class = 'object')
15011501 * @param bool $onlyChanged Only Changed Property
15021502 * @param bool $recursive If true, inner entities will be casted as array as well
15031503 *
1504- * @throws ReflectionException
1505- *
15061504 * @return array Array
1505+ *
1506+ * @throws ReflectionException
15071507 */
15081508 protected function objectToArray ($ data , bool $ onlyChanged = true , bool $ recursive = false ): array
15091509 {
@@ -1531,9 +1531,9 @@ protected function objectToArray($data, bool $onlyChanged = true, bool $recursiv
15311531 * @param bool $onlyChanged Only Changed Property
15321532 * @param bool $recursive If true, inner entities will be casted as array as well
15331533 *
1534- * @throws ReflectionException
1535- *
15361534 * @return array|null Array
1535+ *
1536+ * @throws ReflectionException
15371537 */
15381538 protected function objectToRawArray ($ data , bool $ onlyChanged = true , bool $ recursive = false ): ?array
15391539 {
0 commit comments