36118ee452
* Implemented automatic PHPDoc generate * fix syntax * fix syntax * bugfix doc * bugfix syntax * bufgix syntax * Update AnnotationsBuilder.php
93 lines
2.7 KiB
PHP
93 lines
2.7 KiB
PHP
<?php
|
|
/*
|
|
Copyright 2016 Daniil Gentili
|
|
(https://daniil.it)
|
|
This file is part of MadelineProto.
|
|
MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
See the GNU Affero General Public License for more details.
|
|
You should have received a copy of the GNU General Public License along with MadelineProto.
|
|
If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
namespace danog\MadelineProto;
|
|
|
|
class APIFactory
|
|
{
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var channels
|
|
*/
|
|
public $channels;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var help
|
|
*/
|
|
public $help;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var upload
|
|
*/
|
|
public $upload;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var photos
|
|
*/
|
|
public $photos;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var updates
|
|
*/
|
|
public $updates;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var messages
|
|
*/
|
|
public $messages;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var contacts
|
|
*/
|
|
public $contacts;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var users
|
|
*/
|
|
public $users;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var account
|
|
*/
|
|
public $account;
|
|
/**
|
|
* @internal this is a internal property generated by build_docs.php, dont change manually
|
|
*
|
|
* @var auth
|
|
*/
|
|
public $auth;
|
|
public $namespace;
|
|
public $API;
|
|
|
|
public function __construct($namespace, $API)
|
|
{
|
|
$this->namespace = $namespace.'.';
|
|
$this->API = $API;
|
|
}
|
|
|
|
public function __call($name, $arguments)
|
|
{
|
|
$this->API->get_config();
|
|
|
|
return $this->API->method_call($this->namespace.$name, is_array($arguments[0]) ? $arguments[0] : []);
|
|
}
|
|
}
|