Skip to content

Commit

Permalink
Merge pull request #39 from retailcrm/dialog-list-since-id-filter
Browse files Browse the repository at this point in the history
Filter sinceId in dialog list method
  • Loading branch information
muxx authored Aug 10, 2023
2 parents d9192f9 + 8b9afc5 commit d92b89a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,11 @@ parameters:
count: 1
path: src/Bot/Model/Request/DialogsRequest.php

-
message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\DialogsRequest\\:\\:setSinceId\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Bot/Model/Request/DialogsRequest.php

-
message: "#^Method RetailCrm\\\\Mg\\\\Bot\\\\Model\\\\Request\\\\DialogsRequest\\:\\:setBotId\\(\\) has no return typehint specified\\.$#"
count: 1
Expand Down
25 changes: 25 additions & 0 deletions src/Bot/Model/Request/DialogsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ class DialogsRequest implements ModelInterface
use CommonFields;
use PageLimit;

/**
* @var int $sinceId
*
* @Type("int")
* @Accessor(getter="getSinceId",setter="setSinceId")
* @SkipWhenEmpty
*/
private $sinceId;

/**
* @var int $chatId
*
Expand Down Expand Up @@ -70,6 +79,22 @@ class DialogsRequest implements ModelInterface
*/
private $assign;

/**
* @return int
*/
public function getSinceId()
{
return $this->sinceId;
}

/**
* @param int $sinceId
*/
public function setSinceId(int $sinceId)
{
$this->sinceId = $sinceId;
}

/**
* @return int
*/
Expand Down

0 comments on commit d92b89a

Please sign in to comment.