Skip to content

Commit 871f259

Browse files
committed
PageSelectForm: The id can contain a URL.
1 parent 4601578 commit 871f259

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Classes/Domain/Model/PageSelectForm.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
class PageSelectForm extends AbstractEntity
2626
{
2727
/**
28+
* @var string
2829
* @access protected
29-
* @var integer
3030
*/
3131
protected $id;
3232

@@ -51,15 +51,15 @@ class PageSelectForm extends AbstractEntity
5151
/**
5252
* @return int
5353
*/
54-
public function getId(): int
54+
public function getId(): int|string
5555
{
5656
return $this->id;
5757
}
5858

5959
/**
6060
* @param int $id
6161
*/
62-
public function setId(int $id): void
62+
public function setId(int|string $id): void
6363
{
6464
$this->id = $id;
6565
}
@@ -85,7 +85,7 @@ public function setRecordId(string $recordId): void
8585
*/
8686
public function getDouble(): string
8787
{
88-
return $this->double;
88+
return $this->double ?? '0';
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)