本文整理匯總了PHP中CL\Slack\Payload\PayloadInterface::getCount方法的典型用法代碼示例。如果您正苦於以下問題:PHP PayloadInterface::getCount方法的具體用法?PHP PayloadInterface::getCount怎麽用?PHP PayloadInterface::getCount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CL\Slack\Payload\PayloadInterface
的用法示例。
在下文中一共展示了PayloadInterface::getCount方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getExpectedPayloadData
/**
* @inheritdoc
*
* @param ImHistoryPayload $payload
*/
protected function getExpectedPayloadData(PayloadInterface $payload)
{
return ['channel' => $payload->getImId(), 'latest' => $payload->getLatest(), 'oldest' => $payload->getOldest(), 'count' => $payload->getCount()];
}
示例2: getExpectedPayloadData
/**
* @inheritdoc
*
* @param AbstractSearchPayload $payload
*/
protected function getExpectedPayloadData(PayloadInterface $payload)
{
return ['query' => $payload->getQuery(), 'page' => $payload->getPage(), 'count' => $payload->getCount(), 'highlight' => $payload->getHighlight(), 'sort' => $payload->getSort(), 'sort_dir' => $payload->getSortDir()];
}
示例3: getExpectedPayloadData
/**
* {@inheritdoc}
*
* @param FilesListPayload $payload
*/
protected function getExpectedPayloadData(PayloadInterface $payload)
{
return ['page' => $payload->getPage(), 'count' => $payload->getCount(), 'types' => $payload->getTypes(), 'user' => $payload->getUserId(), 'ts_from' => $payload->getTimestampFrom()->format('U'), 'ts_to' => $payload->getTimestampTo()->format('U')];
}
示例4: getExpectedPayloadData
/**
* {@inheritdoc}
*
* @param StarsListPayload $payload
*/
protected function getExpectedPayloadData(PayloadInterface $payload)
{
return ['count' => $payload->getCount(), 'page' => $payload->getPage(), 'user' => $payload->getUserId()];
}