1
0
Fork 0
mirror of synced 2025-04-13 05:50:55 +00:00

Compare commits

..

No commits in common. "master" and "v1.4.12" have entirely different histories.

5 changed files with 52 additions and 35 deletions

View file

@ -15,14 +15,14 @@ jobs:
matrix: matrix:
php-version: ['7.3', '7.4', '8.0', '8.1'] php-version: ['7.3', '7.4', '8.0', '8.1']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Setup PHP ${{ matrix.php-version }} - name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-version }} php-version: ${{ matrix.php-version }}
tools: composer:v1 tools: composer:v1
- name: Composer cache - name: Composer cache
uses: actions/cache@v4 uses: actions/cache@v2
with: with:
path: ${{ env.HOME }}/.composer/cache path: ${{ env.HOME }}/.composer/cache
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

View file

@ -1355,11 +1355,6 @@ parameters:
count: 1 count: 1
path: src/Bot/Model/Request/MembersRequest.php path: src/Bot/Model/Request/MembersRequest.php
-
message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\MembersRequest\\:\\:setId\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Bot/Model/Request/MembersRequest.php
- -
message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\MembersRequest\\:\\:setSince\\(\\) has no return typehint specified\\.$#" message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\MembersRequest\\:\\:setSince\\(\\) has no return typehint specified\\.$#"
count: 1 count: 1

View file

@ -38,7 +38,6 @@ class Constants
const BOT_ROLE_DISTRIBUTOR = "distributor"; const BOT_ROLE_DISTRIBUTOR = "distributor";
const BOT_ROLE_RESPONSIBLE = "responsible"; const BOT_ROLE_RESPONSIBLE = "responsible";
const BOT_ROLE_HIDDEN = "hidden";
const MESSAGE_SCOPE_PUBLIC = "public"; const MESSAGE_SCOPE_PUBLIC = "public";
const MESSAGE_SCOPE_PRIVATE = "private"; const MESSAGE_SCOPE_PRIVATE = "private";

View file

@ -119,15 +119,6 @@ class Dialog implements ModelInterface
*/ */
private $isActive; private $isActive;
/**
* @var Utm $utm
*
* @Type("RetailCrm\Mg\Bot\Model\Entity\Utm")
* @Accessor(getter="getUtm",setter="setUtm")
* @SkipWhenEmpty()
*/
private $utm;
/** /**
* @return string|null * @return string|null
*/ */
@ -303,21 +294,4 @@ class Dialog implements ModelInterface
{ {
$this->isActive = $isActive; $this->isActive = $isActive;
} }
/**
* @return Utm|null
*/
public function getUtm(): ?Utm
{
return $this->utm;
}
/**
* @param Utm $utm
* @return void
*/
public function setUtm(Utm $utm): void
{
$this->utm = $utm;
}
} }

View file

@ -22,7 +22,6 @@ use RetailCrm\Mg\Bot\Model\ModelInterface;
*/ */
class MembersRequest implements ModelInterface class MembersRequest implements ModelInterface
{ {
use CommonFields;
use PageLimit; use PageLimit;
/** /**
@ -52,6 +51,24 @@ class MembersRequest implements ModelInterface
*/ */
private $state; private $state;
/**
* @var string $since
*
* @Type("string")
* @Accessor(getter="getSince",setter="setSince")
* @SkipWhenEmpty
*/
private $since;
/**
* @var string $until
*
* @Type("string")
* @Accessor(getter="getUntil",setter="setUntil")
* @SkipWhenEmpty
*/
private $until;
/** /**
* @return int * @return int
*/ */
@ -99,4 +116,36 @@ class MembersRequest implements ModelInterface
{ {
$this->state = $state; $this->state = $state;
} }
/**
* @return string
*/
public function getSince()
{
return $this->since;
}
/**
* @param string $since
*/
public function setSince(string $since)
{
$this->since = $since;
}
/**
* @return string
*/
public function getUntil()
{
return $this->until;
}
/**
* @param string $until
*/
public function setUntil(string $until)
{
$this->until = $until;
}
} }