-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dmitry Gladyshev
committed
Jul 26, 2020
1 parent
a1e1dad
commit 0678d0c
Showing
3 changed files
with
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
3.1.2 - Businesses service | ||
|
||
3.1.1 - Fix scrutinizer reflection issue | ||
|
||
3.1.0 - Improve params mapping | ||
|
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,46 @@ | ||
<?php | ||
/** | ||
* @author Dmitry Gladyshev <deel@email.ru> | ||
* @date 26/08/20120 21:16 | ||
*/ | ||
|
||
namespace Yandex\Direct\Service; | ||
|
||
use Yandex\Direct\Service; | ||
use function Yandex\Direct\get_param_names; | ||
|
||
/** | ||
* Class Businesses | ||
* | ||
* @author Dmitry Gladyshev <gladyshevd@icloud.com> | ||
* | ||
* @see https://yandex.ru/dev/direct/doc/ref-v5/businesses/businesses-docpage/ | ||
*/ | ||
final class Businesses extends Service | ||
{ | ||
/** | ||
* @param array $SelectionCriteria | ||
* @param array $FieldNames | ||
* @param array $Page | ||
* | ||
* @return array|\DOMDocument | ||
* | ||
* @throws \ReflectionException | ||
* @throws \Yandex\Direct\Exception\ErrorResponseException | ||
* @throws \Yandex\Direct\Exception\Exception | ||
* | ||
* @see https://yandex.ru/dev/direct/doc/ref-v5/businesses/get-docpage/ | ||
*/ | ||
public function get( | ||
$SelectionCriteria, | ||
$FieldNames, | ||
$Page = null | ||
) { | ||
$params = compact(get_param_names(__METHOD__)); | ||
|
||
return $this->request([ | ||
'method' => 'get', | ||
'params' => $params | ||
]); | ||
} | ||
} |
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