82 lines
1.6 KiB
PHP
82 lines
1.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* PHP version 7.0
|
|
*
|
|
* MessageCost entity
|
|
*
|
|
* @package RetailCrm\Mg\Bot\Model\Entity\Message
|
|
* @author retailCRM <integration@retailcrm.ru>
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link http://help.retailcrm.pro/docs/Developers
|
|
*/
|
|
|
|
namespace RetailCrm\Mg\Bot\Model\Entity\Message;
|
|
|
|
use JMS\Serializer\Annotation\Accessor;
|
|
use JMS\Serializer\Annotation\SkipWhenEmpty;
|
|
use JMS\Serializer\Annotation\Type;
|
|
|
|
/**
|
|
* PHP version 7.0
|
|
*
|
|
* MessageCost class
|
|
*
|
|
* @package RetailCrm\Mg\Bot\Model\Entity\Message
|
|
* @author retailCRM <integration@retailcrm.ru>
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link http://help.retailcrm.pro/docs/Developers
|
|
*/
|
|
class MessageCost
|
|
{
|
|
/**
|
|
* @var float $value
|
|
*
|
|
* @Type("float")
|
|
* @Accessor(getter="getValue",setter="setValue")
|
|
* @SkipWhenEmpty()
|
|
*/
|
|
private $value;
|
|
|
|
/**
|
|
* @var string $currency
|
|
*
|
|
* @Type("string")
|
|
* @Accessor(getter="getCurrency",setter="setCurrency")
|
|
*
|
|
* @Assert\Currency
|
|
*/
|
|
private $currency;
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
/**
|
|
* @param float $value
|
|
*/
|
|
public function setValue(float $value)
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCurrency()
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
/**
|
|
* @param string $currency
|
|
*/
|
|
public function setCurrency(string $currency)
|
|
{
|
|
$this->currency = $currency;
|
|
}
|
|
} |