Skip to content

Commit 030e321

Browse files
author
Milan Latinovic
committed
- Fix bug with readonly field
- Extend example for create-document
1 parent 3e94746 commit 030e321

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

example/create-document.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999

100100
$textField = new TextField();
101101
$signatureField->setFileIndex(0);
102+
$textField->setSigner(1);
103+
$textField->setReadOnly(0);
102104
$textField->setPage(1);
103105
$textField->setX(10);
104106
$textField->setY(50);

sdk/Eversign/Readable.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ trait Readable {
3636

3737
/**
3838
* Determines if the FormField is writable or not
39-
* @var integer $readOnly
39+
* @var integer $readonly
4040
* @Type("integer")
4141
*/
42-
private $readOnly;
42+
private $readonly;
4343

44-
public function setReadOnly($readOnly) {
45-
$this->readOnly = !!$readOnly;
44+
public function setReadonly($readonly) {
45+
$this->readonly = !!$readonly;
4646
}
4747

48-
public function getReadOnly() {
49-
return !!$this->readOnly;
48+
public function getReadonly() {
49+
return !!$this->readonly;
5050
}
5151
}

0 commit comments

Comments
 (0)