We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ed3abc commit 1603577Copy full SHA for 1603577
1 file changed
src/Api/SkillSet.php
@@ -24,6 +24,7 @@
24
*/
25
26
use GuzzleHttp\Client;
27
+use GuzzleHttp\Exception\ClientException;
28
use GuzzleHttp\Psr7\Request;
29
use SkillDisplay\PHPToolKit\Configuration\Settings;
30
use SkillDisplay\PHPToolKit\Entity\SkillSet as Entity;
@@ -48,13 +49,16 @@ public function __construct(
48
49
$this->client = $client;
50
}
51
- public function getById(int $id): Entity
52
+ public function getById(int $id, bool $includeFullSkills = false): Entity
53
{
54
if ($id <= 0) {
55
throw new \Exception('ID of SkillSet has to be a positive integer.', 1600764811);
56
57
58
$url = $this->settings->getAPIUrl() . '/api/v1/skillset/' . $id;
59
+ if ($includeFullSkills) {
60
+ $url .= '?includeFullSkills';
61
+ }
62
try {
63
$result = $this->client->send(new Request(
64
'GET',
0 commit comments