vk/Group.php

45 lines
786 B
PHP
Raw Normal View History

2020-06-06 15:27:31 +07:00
<?php
/**
* Created by PhpStorm.
* User: zerox
* Date: 25.08.18
* Time: 23:59
*/
namespace VK;
/**
* Class Group
* @package VK
*/
class Group extends vk_api
{
/**
* @var
*/
private $groupID;
/**
* Group constructor.
* @param $groupID
* @param $vk_api
*/
public function __construct($groupID, $vk_api)
{
$this->groupID = $groupID;
parent::setAllDataclass($vk_api->copyAllDataclass());
}
/**
* @param $method
* @param $params
* @return array
*/
protected function editRequestParams($method, $params)
{
// if ($method == 'messages.send' or $method == 'photos.saveMessagesPhoto')
$params['group_id'] = $this->groupID;
return [$method, $params];
}
}