Skip to content

Commit

Permalink
Merge pull request #40 from eversign/bug-readonly-attribute-not-worki…
Browse files Browse the repository at this point in the history
…ng-properly-across-whole-sdk

Fix for readonly bug across the whole SDK
  • Loading branch information
archivelm authored Feb 15, 2021
2 parents 3e94746 + 030e321 commit 753e7d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions example/create-document.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@

$textField = new TextField();
$signatureField->setFileIndex(0);
$textField->setSigner(1);
$textField->setReadOnly(0);
$textField->setPage(1);
$textField->setX(10);
$textField->setY(50);
Expand Down
12 changes: 6 additions & 6 deletions sdk/Eversign/Readable.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ trait Readable {

/**
* Determines if the FormField is writable or not
* @var integer $readOnly
* @var integer $readonly
* @Type("integer")
*/
private $readOnly;
private $readonly;

public function setReadOnly($readOnly) {
$this->readOnly = !!$readOnly;
public function setReadonly($readonly) {
$this->readonly = !!$readonly;
}

public function getReadOnly() {
return !!$this->readOnly;
public function getReadonly() {
return !!$this->readonly;
}
}

0 comments on commit 753e7d9

Please sign in to comment.