-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $id | ||
* | ||
* @Type("string") | ||
* @Accessor(getter="getId",setter="setId") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var string $caption | ||
* | ||
* @Type("string") | ||
* @Accessor(getter="getCaption",setter="setCaption") | ||
* @SkipWhenEmpty() | ||
*/ | ||
private $caption; | ||
|
||
/** | ||
* @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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters