WIP
This commit is contained in:
1 parent
305699b1ac
commit
dc5b9a9238
17 files changed
+297
-176
No files matched your search
@@ -2,19 +2,11 @@
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
use Symfony\Component\Serializer\Annotation\Ignore;
|
||||
use Symfony\Component\Serializer\Annotation\SerializedName;
|
||||
|
||||
class CrmAttribute
|
||||
{
|
||||
#[SerializedName('@id')]
|
||||
private ?int $id = null;
|
||||
|
||||
#[SerializedName('@bezeichnung')]
|
||||
private ?string $label = null;
|
||||
|
||||
#[SerializedName('@auswahl')]
|
||||
private ?string $selectedAsString = null;
|
||||
private bool $selected = false;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
@@ -40,26 +32,14 @@ class CrmAttribute
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSelectedAsString(): ?string
|
||||
{
|
||||
return $this->selectedAsString;
|
||||
}
|
||||
|
||||
public function setSelectedAsString(?string $selectedAsString): static
|
||||
{
|
||||
$this->selectedAsString = $selectedAsString;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isSelected(): bool
|
||||
{
|
||||
return 'true' === strtolower($this->selectedAsString);
|
||||
return $this->selected;
|
||||
}
|
||||
|
||||
public function setSelected(bool $selected): static
|
||||
{
|
||||
$this->selectedAsString = $selected ? 'True' : 'False';
|
||||
$this->selected = $selected;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user