Skip to content

Commit

Permalink
📝 Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
amcintosh committed Mar 28, 2024
1 parent bf01124 commit 584bdfa
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Exception/FreshBooksClientConfigException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

namespace amcintosh\FreshBooks\Exception;

/**
* Exception thrown when the SDK has not been configured properly.
*
* @package amcintosh\FreshBooks\Exception
*/
final class FreshBooksClientConfigException extends \Exception
{
public function __construct(string $message)
Expand Down
5 changes: 5 additions & 0 deletions src/Exception/FreshBooksException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

namespace amcintosh\FreshBooks\Exception;

/**
* Exception thrown when the FreshBooks API returns an error.
*
* @package amcintosh\FreshBooks\Exception
*/
final class FreshBooksException extends \Exception
{
public ?string $rawResponse;
Expand Down
5 changes: 5 additions & 0 deletions src/Exception/FreshBooksNotImplementedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

namespace amcintosh\FreshBooks\Exception;

/**
* Exception thrown when attempting to make an API call that is not supported.
*
* @package amcintosh\FreshBooks\Exception
*/
final class FreshBooksNotImplementedException extends \Exception
{
public function __construct(
Expand Down
5 changes: 5 additions & 0 deletions src/FreshBooksClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
use amcintosh\FreshBooks\Resource\PaymentResource;
use amcintosh\FreshBooks\Resource\ProjectResource;

/**
* SDK Client.
*
* @package amcintosh\FreshBooks
*/
class FreshBooksClient
{
protected ClientInterface $httpClient;
Expand Down
2 changes: 2 additions & 0 deletions src/FreshBooksClientConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Configuration object for FreshBooks API Client
*
* @package amcintosh\FreshBooks
*/
class FreshBooksClientConfig
{
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
*
* Services automatically get converted to tasks for inclusion on invoices.
*
* @link https://www.freshbooks.com/api/project
* @see <a href="https://www.freshbooks.com/api/services">FreshBooks API - Services</a>
* @package amcintosh\FreshBooks\Model
* @link https://www.freshbooks.com/api/services
*/
class Service extends DataTransferObject
{
Expand Down

0 comments on commit 584bdfa

Please sign in to comment.