Skip to content

Commit

Permalink
Use fully-qualified class names in PHPDoc (#7)
Browse files Browse the repository at this point in the history
* Use fully-qualified class names in PHPDoc
  • Loading branch information
glorand committed Dec 20, 2018
1 parent 85d7cc5 commit 4855217
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `glorand/drip-php` will be documented in this file

## 1.0.4 - 2018-12-20
### Update
- Use fully-qualified class names in PHPDoc

## 1.0.3 - 2018-12-18
### Added
- Batch API
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Accounts extends Api
/**
* List all accounts.
*
* @return Response\ApiResponse
* @return \Glorand\Drip\Api\Response\ApiResponse
*/
public function list(): ApiResponse
{
Expand All @@ -21,7 +21,7 @@ public function list(): ApiResponse
*
* @param string $accountId
*
* @return ApiResponse
* @return \Glorand\Drip\Api\Response\ApiResponse
*/
public function show(string $accountId): ApiResponse
{
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ abstract class Api
/**
* Api constructor.
*
* @param Client $client
* @param string $accountId
* @param \GuzzleHttp\Client $client
* @param string $accountId
*/
public function __construct(Client $client, string $accountId)
{
Expand Down
8 changes: 3 additions & 5 deletions src/Api/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ class Events extends Api
* @param int $page
* @param int $perPage
*
* @throws DripException
*
* @return Response\ApiResponse
* @return \Glorand\Drip\Api\Response\ApiResponse
* @throws \Glorand\Drip\Exceptions\DripException
*/
public function list(int $page = 1, int $perPage = 100): ApiResponse
{
Expand All @@ -34,8 +33,7 @@ public function list(int $page = 1, int $perPage = 100): ApiResponse
/**
* Record an event
* @see https://developer.drip.com/?shell#events
*
* @param Event $event
* @param \Glorand\Drip\Models\Event $event
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Subscribers.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Subscribers extends Api
* subscribed_before - Optional. A ISO-8601 datetime. Eg. "2017-01-01T00:00:00Z"
* subscribed_after - Optional. A ISO-8601 datetime. Eg. "2016-01-01T00:00:00Z"
*
* @return ApiResponse
* @return \Glorand\Drip\Api\Response\ApiResponse;
*/
public function list(int $page = 1, int $perPage = 100, array $params = []): ApiResponse
{
Expand All @@ -33,7 +33,7 @@ public function list(int $page = 1, int $perPage = 100, array $params = []): Api
}

/**
* @param Subscriber $subscriber
* @param \Glorand\Drip\Models\Subscriber $subscriber
*
* @return bool
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Drip.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ public function __construct(string $accountId, string $apiToken, string $userAge
}

/**
* @return Events
* @return \Glorand\Drip\Api\Events
*/
public function events(): Events
{
return new Events($this->getClient(), $this->accountId);
}

/**
* @return Subscribers
* @return \Glorand\Drip\Api\Subscribers
*/
public function subscribers(): Subscribers
{
return new Subscribers($this->getClient(), $this->accountId);
}

/**
* @return Accounts
* @return \Glorand\Drip\Api\Accounts
*/
public function accounts(): Accounts
{
Expand Down

0 comments on commit 4855217

Please sign in to comment.