|
|
|
@ -96,7 +96,7 @@ class ExtraField |
|
|
|
|
protected Collection $options; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @var Tag[]|Collection |
|
|
|
|
* @var Collection<int, Tag> |
|
|
|
|
*/ |
|
|
|
|
#[ORM\OneToMany(targetEntity: Tag::class, mappedBy: 'field')] |
|
|
|
|
protected Collection $tags; |
|
|
|
@ -114,12 +114,7 @@ class ExtraField |
|
|
|
|
$this->filter = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get id. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getId() |
|
|
|
|
public function getId(): ?int |
|
|
|
|
{ |
|
|
|
|
return $this->id; |
|
|
|
|
} |
|
|
|
@ -144,10 +139,7 @@ class ExtraField |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getVariable() |
|
|
|
|
public function getVariable(): string |
|
|
|
|
{ |
|
|
|
|
return $this->variable; |
|
|
|
|
} |
|
|
|
@ -158,10 +150,7 @@ class ExtraField |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getDisplayText() |
|
|
|
|
public function getDisplayText(): ?string |
|
|
|
|
{ |
|
|
|
|
return $this->displayText; |
|
|
|
|
} |
|
|
|
@ -172,10 +161,7 @@ class ExtraField |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getDefaultValue() |
|
|
|
|
public function getDefaultValue(): ?string |
|
|
|
|
{ |
|
|
|
|
return $this->defaultValue; |
|
|
|
|
} |
|
|
|
@ -186,10 +172,7 @@ class ExtraField |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getFieldOrder() |
|
|
|
|
public function getFieldOrder(): ?int |
|
|
|
|
{ |
|
|
|
|
return $this->fieldOrder; |
|
|
|
|
} |
|
|
|
@ -200,10 +183,7 @@ class ExtraField |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function isChangeable() |
|
|
|
|
public function isChangeable(): ?bool |
|
|
|
|
{ |
|
|
|
|
return $this->changeable; |
|
|
|
|
} |
|
|
|
@ -269,9 +249,9 @@ class ExtraField |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return Tag[]|Collection |
|
|
|
|
* @return Collection<int, Tag> |
|
|
|
|
*/ |
|
|
|
|
public function getTags(): array|Collection |
|
|
|
|
public function getTags(): Collection |
|
|
|
|
{ |
|
|
|
|
return $this->tags; |
|
|
|
|
} |
|
|
|
@ -306,13 +286,13 @@ class ExtraField |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
public function setTranslatableLocale($locale) |
|
|
|
|
public function setTranslatableLocale($locale): static |
|
|
|
|
{ |
|
|
|
|
$this->locale = $locale; |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
public function getTranslatableLocale() |
|
|
|
|
public function getTranslatableLocale(): ?string |
|
|
|
|
{ |
|
|
|
|
return $this->locale; |
|
|
|
|
} |
|
|
|
|