Commit 4f8ad316 authored by Andreas Heimann's avatar Andreas Heimann

added text color to ads

parent 1f70dd02
......@@ -172,6 +172,7 @@ class APIController extends AbstractController
$oneResult['id'] = $result->getId();
$oneResult['title'] = $result->getTitle();
$oneResult['type'] = $result->getType();
$oneResult['textColor'] = $result->getTextColor();
$oneResult['color'] = $result->getColor();
$oneResult['button']['type'] = $result->getButtonType();
$oneResult['button']['data'] = $result->getButtonData();
......
......@@ -26,6 +26,11 @@ class Ad
*/
private $type;
/**
* @ORM\Column(type="string", length=7)
*/
private $textColor;
/**
* @ORM\Column(type="string", length=7)
*/
......@@ -80,6 +85,18 @@ class Ad
return $this;
}
public function getTextColor(): ?string
{
return $this->textColor;
}
public function setTextColor(string $textColor): self
{
$this->textColor = $textColor;
return $this;
}
public function getColor(): ?string
{
return $this->color;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment