-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.1 | ||
* | ||
* TemplateAttachment entity | ||
* | ||
* @package RetailCrm\Mg\Bot\Model\Entity\Template | ||
*/ | ||
|
||
namespace RetailCrm\Mg\Bot\Model\Entity\Template; | ||
|
||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\Type; | ||
use RetailCrm\Mg\Bot\Model\ModelInterface; | ||
|
||
/** | ||
* TemplateAttachment class | ||
* | ||
* @package RetailCrm\Mg\Bot\Model\Entity\Template | ||
*/ | ||
class TemplateAttachment implements ModelInterface | ||
{ | ||
/** | ||
* @var string $header | ||
* | ||
* @Type("string") | ||
* @Accessor(getter="getId",setter="setId") | ||
*/ | ||
private $id; | ||
Check failure on line 31 in src/Bot/Model/Entity/Template/TemplateAttachment.php GitHub Actions / test (7.3)
Check failure on line 31 in src/Bot/Model/Entity/Template/TemplateAttachment.php GitHub Actions / test (7.4)
Check failure on line 31 in src/Bot/Model/Entity/Template/TemplateAttachment.php GitHub Actions / test (8.0)
|
||
|
||
/** | ||
* @var string $header | ||
* | ||
* @Type("string") | ||
* @Accessor(getter="getCaption",setter="setCaption") | ||
* @SkipWhenEmpty() | ||
*/ | ||
private $caption; | ||
Check failure on line 40 in src/Bot/Model/Entity/Template/TemplateAttachment.php GitHub Actions / test (7.3)
Check failure on line 40 in src/Bot/Model/Entity/Template/TemplateAttachment.php GitHub Actions / test (7.4)
Check failure on line 40 in src/Bot/Model/Entity/Template/TemplateAttachment.php GitHub Actions / test (8.0)
|
||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getId(): ?string | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param string $id | ||
* @return void | ||
*/ | ||
public function setId(string $id): void | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getCaption(): ?string | ||
{ | ||
return $this->caption; | ||
} | ||
|
||
/** | ||
* @param string $caption | ||
*/ | ||
public function setCaption(string $caption): void | ||
{ | ||
$this->caption = $caption; | ||
} | ||
} |