1
0
Fork 0
mirror of synced 2025-03-30 03:30:11 +03:00

Merge pull request #54 from Chupocabra/refactor-members_req

Use CommonFields in MembersRequest
This commit is contained in:
Pavel 2025-03-26 11:42:56 +03:00 committed by GitHub
commit 7a87f2669b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 50 deletions

View file

@ -1355,6 +1355,11 @@ parameters:
count: 1
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\\.$#"
count: 1

View file

@ -22,6 +22,7 @@ use RetailCrm\Mg\Bot\Model\ModelInterface;
*/
class MembersRequest implements ModelInterface
{
use CommonFields;
use PageLimit;
/**
@ -51,24 +52,6 @@ class MembersRequest implements ModelInterface
*/
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
*/
@ -116,36 +99,4 @@ class MembersRequest implements ModelInterface
{
$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;
}
}