public function Github_Client::setApi in Bibliography Module 7.2
Inject an API instance
Parameters
string $name the API name:
Github_ApiInterface $api the API instance:
Return value
null
File
- modules/
CiteProc/ Github/ Client.php, line 235
Class
- Github_Client
- Simple yet very cool PHP Github client
Code
public function setApi($name, Github_ApiInterface $instance) {
$this->apis[$name] = $instance;
return $this;
}