Skip to content

Commit 810d83d

Browse files
committed
always define get/set imports
1 parent 6d6d6e5 commit 810d83d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/ExcelBulkLoader.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
class ExcelBulkLoader extends BulkLoader
1919
{
20+
private bool $checkPermissions = false;
21+
2022
private bool $useTransaction = false;
2123

2224
/**
@@ -490,6 +492,23 @@ public function getFileType()
490492
return $this->fileType;
491493
}
492494

495+
/**
496+
* If true, this bulk loader will respect create/edit/delete permissions.
497+
*/
498+
public function getCheckPermissions(): bool
499+
{
500+
return $this->checkPermissions;
501+
}
502+
503+
/**
504+
* Determine whether this bulk loader should respect create/edit/delete permissions.
505+
*/
506+
public function setCheckPermissions(bool $value): ExcelBulkLoader
507+
{
508+
$this->checkPermissions = $value;
509+
return $this;
510+
}
511+
493512
/**
494513
* If true, will wrap everything in a transaction
495514
*/

0 commit comments

Comments
 (0)