80 lines
1.5 KiB
PHP
80 lines
1.5 KiB
PHP
<?php
|
|
|
|
/**
|
|
* PHP version 7.0
|
|
*
|
|
* Channels list request
|
|
*
|
|
* @package RetailCrm\Mg\Bot\Model\Request
|
|
* @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\Request;
|
|
|
|
use JMS\Serializer\Annotation\Accessor;
|
|
use JMS\Serializer\Annotation\SkipWhenEmpty;
|
|
use JMS\Serializer\Annotation\Type;
|
|
|
|
/**
|
|
* PHP version 7.0
|
|
*
|
|
* ChannelsRequest class
|
|
*
|
|
* @package RetailCrm\Mg\Bot\Model\Request
|
|
* @author retailCRM <integration@retailcrm.ru>
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link http://help.retailcrm.pro/docs/Developers
|
|
*/
|
|
class ChannelsRequest
|
|
{
|
|
use CommonFields;
|
|
|
|
/**
|
|
* @Type("array")
|
|
* @Accessor(getter="getTypes",setter="setTypes")
|
|
* @SkipWhenEmpty
|
|
*/
|
|
private $types;
|
|
|
|
/**
|
|
* @Type("int")
|
|
* @Accessor(getter="getActive",setter="setActive")
|
|
* @SkipWhenEmpty
|
|
*/
|
|
private $active;
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getTypes()
|
|
{
|
|
return $this->types;
|
|
}
|
|
|
|
/**
|
|
* @param array $types
|
|
*/
|
|
public function setTypes($types)
|
|
{
|
|
$this->types = $types;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getActive()
|
|
{
|
|
return $this->active;
|
|
}
|
|
|
|
/**
|
|
* @param int $active
|
|
*/
|
|
public function setActive($active)
|
|
{
|
|
$this->active = $active;
|
|
}
|
|
}
|