99 */
1010abstract class BaseOptions
1111{
12- protected int $ maxBoundParams = 0 ;
13- protected int $ maxInsertRows = 0 ;
12+ /**
13+ * The maximum number of parameters which can be bound in a single query.
14+ * If greater than zero, PeachySQL will batch insert queries to avoid the limit.
15+ */
16+ public int $ maxBoundParams = 0 ;
17+
18+ /**
19+ * The maximum number of rows which can be inserted via a single query.
20+ * If greater than zero, PeachySQL will batch insert queries to avoid the limit.
21+ */
22+ public int $ maxInsertRows = 0 ;
1423
1524 /**
1625 * Escapes a table or column name, and validates that it isn't blank
@@ -33,6 +42,8 @@ public function escapeIdentifier(string $identifier): string
3342 /**
3443 * Specify the maximum number of parameters which can be bound in a single query.
3544 * If greater than zero, PeachySQL will batch insert queries to avoid the limit.
45+ * @deprecated Use public property instead
46+ * @api
3647 */
3748 public function setMaxBoundParams (int $ maxParams ): void
3849 {
@@ -43,6 +54,10 @@ public function setMaxBoundParams(int $maxParams): void
4354 $ this ->maxBoundParams = $ maxParams ;
4455 }
4556
57+ /**
58+ * @deprecated Use public property instead
59+ * @api
60+ */
4661 public function getMaxBoundParams (): int
4762 {
4863 return $ this ->maxBoundParams ;
@@ -51,6 +66,8 @@ public function getMaxBoundParams(): int
5166 /**
5267 * Specify the maximum number of rows which can be inserted via a single query.
5368 * If greater than zero, PeachySQL will batch insert queries to remove the limit.
69+ * @deprecated Use public property instead
70+ * @api
5471 */
5572 public function setMaxInsertRows (int $ maxRows ): void
5673 {
@@ -61,6 +78,10 @@ public function setMaxInsertRows(int $maxRows): void
6178 $ this ->maxInsertRows = $ maxRows ;
6279 }
6380
81+ /**
82+ * @deprecated Use public property instead
83+ * @api
84+ */
6485 public function getMaxInsertRows (): int
6586 {
6687 return $ this ->maxInsertRows ;
0 commit comments