Skip to content

Commit

Permalink
bumped version to 1.0.5
Browse files Browse the repository at this point in the history
updated parameter type in docblock
updated README
  • Loading branch information
malle-pietje committed Oct 11, 2024
1 parent b5a7a44 commit 459edfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ try {
'2024-07-15T07:01:13Z'
);
print_r($devices);

echo 'Effective URI: ' . $unifiClient->getEffectiveUri() . PHP_EOL;
echo 'Transfer time: ' . $unifiClient->getTransferTime() . ' seconds' . PHP_EOL;
echo 'Response status: ' . $unifiClient->getResponseStatusCode() . PHP_EOL;
} catch (Exception $e) {
echo "Error: " . $e->getMessage() . "\n";
}

echo 'Effective URI: ' . $unifiClient->getEffectiveUri() . PHP_EOL;
echo 'Transfer time: ' . $unifiClient->getTransferTime() . ' seconds' . PHP_EOL;
echo 'Response status: ' . $unifiClient->getResponseStatusCode() . PHP_EOL;
```

## Getter and Setter Methods
Expand Down
2 changes: 1 addition & 1 deletion src/Client/UniFiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class UniFiClient
private static ?UniFiClient $instance = null;

/** @var string Version of the UniFi Cloud API client */
private const VERSION = '1.0.4';
private const VERSION = '1.0.5';

/** @var Client Guzzle HTTP client instance */
private Client $client;
Expand Down
2 changes: 1 addition & 1 deletion src/Service/DeviceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(UniFiClient $client)
* If time is provided, filters devices by the specified time.
*
* @param array<string> $hostIds Optional. An array of host IDs to filter the devices.
* @param mixed $time Optional. A time parameter to filter the devices.
* @param null|string $time Optional. A time parameter to filter the devices.
* @return array The list of devices, format can vary based on implementation.
* @throws Exception If there is an error in the HTTP request, or if the host IDs are not strings.
*/
Expand Down

0 comments on commit 459edfb

Please sign in to comment.