-
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.
Add include_mass_communication param to requests
- Loading branch information
Showing
4 changed files
with
51 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
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
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,48 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.1 | ||
* | ||
* Common fields | ||
* | ||
* @package RetailCrm\Mg\Bot\Model\Request | ||
*/ | ||
|
||
namespace RetailCrm\Mg\Bot\Model\Request; | ||
|
||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* CommonFields trait | ||
* | ||
* @package RetailCrm\Mg\Bot\Model\Request | ||
*/ | ||
trait IncludeMassCommunication | ||
{ | ||
/** | ||
* @var int $includeMassCommunication | ||
* | ||
* @Type("int") | ||
* @Accessor(getter="getIncludeMassCommunication",setter="setIncludeMassCommunication") | ||
* @SkipWhenEmpty | ||
*/ | ||
private $includeMassCommunication; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getIncludeMassCommunication() | ||
{ | ||
return $this->includeMassCommunication; | ||
} | ||
|
||
/** | ||
* @param int $includeMassCommunication | ||
*/ | ||
public function setIncludeMassCommunication(?int $includeMassCommunication): void | ||
{ | ||
$this->includeMassCommunication = $includeMassCommunication; | ||
} | ||
} |
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