mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +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;
|
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) {
|
public static function getAPI($interaction_type) {
|
||||||
$class_name = "MibewAPI". ucfirst($interaction_type) . "Interaction";
|
$class_name = "MibewAPI". ucfirst($interaction_type) . "Interaction";
|
||||||
if (! class_exists($class_name)) {
|
if (! class_exists($class_name)) {
|
||||||
@ -54,6 +61,11 @@ Class MibewAPI {
|
|||||||
return self::$interactions[$interaction_type];
|
return self::$interactions[$interaction_type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor
|
||||||
|
*
|
||||||
|
* @param MibewAPIInteraction $interaction_type Interaction type object
|
||||||
|
*/
|
||||||
protected function __construct(MibewAPIInteraction $interaction_type) {
|
protected function __construct(MibewAPIInteraction $interaction_type) {
|
||||||
$this->interaction = $interaction_type;
|
$this->interaction = $interaction_type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user