Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
5 / 5 |
| apikeys | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
5 / 5 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
|||
| getKeys | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace Anax\apikeys; | |
| use Anax\Commons\ContainerInjectableInterface; | |
| use Anax\Commons\ContainerInjectableTrait; | |
| class apikeys implements ContainerInjectableInterface | |
| { | |
| use ContainerInjectableTrait; | |
| private $ipstack; | |
| private $darksky; | |
| public function __construct() | |
| { | |
| $config = include(__DIR__ . "/../../config/api_keys.php"); | |
| $this->ipstack = $config["ipstack"]; | |
| $this->darksky = $config["darksky"]; | |
| } | |
| public function getKeys($keyname) | |
| { | |
| return $this->$keyname; | |
| } | |
| } |