Skip to content

Commit

Permalink
Http\Client move docblock of request method to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Sep 19, 2014
1 parent 6384c6e commit 558bcdc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/Http/Client/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@

interface ClientInterface
{
/**
* Request specify url
*
* @param $url
* @param array $parameters
* @param string $method
* @return \SocialConnect\Common\Http\Response
*/
public function request($url, array $parameters = array(), $method = Client::GET);
}
5 changes: 1 addition & 4 deletions src/Http/Client/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ public function __construct()
}

/**
* @param $url
* @param array $parameters
* @param string $method
* @return Response
* {@inheritdoc}
*/
public function request($url, array $parameters = array(), $method = Client::GET)
{
Expand Down
5 changes: 1 addition & 4 deletions src/Http/Client/Guzzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ public function __construct(GuzzleClient $client = null)
}

/**
* @param $url
* @param array $parameters
* @param string $method
* @return Response
* {@inheritdoc}
*/
public function request($url, array $parameters = array(), $method = Client::GET)
{
Expand Down

0 comments on commit 558bcdc

Please sign in to comment.