Skip to content

Commit

Permalink
Improve docblocks for creating new subscriptions
Browse files Browse the repository at this point in the history
Relates to issue #23
  • Loading branch information
pjcdawkins committed Mar 14, 2018
1 parent d43baee commit d3531d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Model/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class Subscription extends Resource
/**
* {@inheritdoc}
*
* @internal Use PlatformClient::createSubscription() to create a new subscription.
*
* @see \Platformsh\Client\PlatformClient::createSubscription()
*
* @return static
*/
public static function create(array $body, $collectionUrl, ClientInterface $client)
Expand Down
6 changes: 5 additions & 1 deletion src/PlatformClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,13 @@ protected function cleanRequest(array $request)
* @param int $environments The number of available environments.
* @param array $activationCallback An activation callback for the subscription.
*
* @see PlatformClient::getRegions().
* @see PlatformClient::getRegions()
* @see Subscription::wait()
*
* @return Subscription
* A subscription, representing a project. Use Subscription::wait() or
* similar code to wait for the subscription's project to be provisioned
* and activated.
*/
public function createSubscription($region, $plan = 'development', $title = null, $storage = null, $environments = null, array $activationCallback = null)
{
Expand Down

0 comments on commit d3531d5

Please sign in to comment.