fix: CompanyDocument
Add Property * add selected property to support edit-member functionality
This commit is contained in:
parent
6ecb76a829
commit
2e41c1ed83
@ -34,6 +34,8 @@ class CompanyDocument
|
|||||||
#[ORM\Column(type: Types::JSON, enumType: DocumentExtras::class, nullable: true)]
|
#[ORM\Column(type: Types::JSON, enumType: DocumentExtras::class, nullable: true)]
|
||||||
private array $extras = [];
|
private array $extras = [];
|
||||||
|
|
||||||
|
private bool $selected = false;
|
||||||
|
|
||||||
public function getId(): ?Uuid
|
public function getId(): ?Uuid
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
@ -87,6 +89,18 @@ class CompanyDocument
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isSelected(): bool
|
||||||
|
{
|
||||||
|
return $this->selected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setSelected(): static
|
||||||
|
{
|
||||||
|
$this->selected = true;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function getExtras(): array
|
public function getExtras(): array
|
||||||
{
|
{
|
||||||
return $this->extras;
|
return $this->extras;
|
||||||
|
Loading…
Reference in New Issue
Block a user