mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-16 00:54:12 +03:00
Added some documentation to the MibewAPI class
This commit is contained in:
parent
31b6d96fc9
commit
460d2d96c2
@ -40,6 +40,13 @@ Class MibewAPI {
|
||||
*/
|
||||
protected $interaction = NULL;
|
||||
|
||||
/**
|
||||
* Returns MibewAPI object
|
||||
*
|
||||
* @param string $interaction_type A name of the interaction type
|
||||
* @return MibeAPI object
|
||||
* @throws MibewAPIException
|
||||
*/
|
||||
public static function getAPI($interaction_type) {
|
||||
$class_name = "MibewAPI". ucfirst($interaction_type) . "Interaction";
|
||||
if (! class_exists($class_name)) {
|
||||
@ -54,6 +61,11 @@ Class MibewAPI {
|
||||
return self::$interactions[$interaction_type];
|
||||
}
|
||||
|
||||
/**
|
||||
* Class constructor
|
||||
*
|
||||
* @param MibewAPIInteraction $interaction_type Interaction type object
|
||||
*/
|
||||
protected function __construct(MibewAPIInteraction $interaction_type) {
|
||||
$this->interaction = $interaction_type;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user