Skip to content

Commit

Permalink
Merge pull request #87 from Happyr/warnings
Browse files Browse the repository at this point in the history
Added deprecated warnings
  • Loading branch information
Nyholm committed Dec 22, 2015
2 parents db48234 + dfada6f commit 322b361
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Exceptions/LinkedInApiException.php
Expand Up @@ -6,6 +6,8 @@
* Class LinkedInApiException.
*
* @author Tobias Nyholm
*
* @deprecated This class will be removed in 0.7.0. It will be replaced by LinkedInException and LinkedInTransferException.
*/
class LinkedInApiException extends \Exception
{
Expand Down
10 changes: 10 additions & 0 deletions src/LinkedIn.php
Expand Up @@ -219,6 +219,8 @@ public function getLoginUrl($params = array())
* Get the user response.
*
* @return mixed|null
*
* @deprecated This function will be removed in 0.7.0.
*/
public function getUser()
{
Expand Down Expand Up @@ -482,6 +484,8 @@ protected function setState($state)
* Get the app id.
*
* @return string
*
* @deprecated This function will be removed in 0.7.0.
*/
public function getAppId()
{
Expand All @@ -492,6 +496,8 @@ public function getAppId()
* Get the app secret.
*
* @return string
*
* @deprecated This function will be removed in 0.7.0.
*/
public function getAppSecret()
{
Expand Down Expand Up @@ -568,6 +574,8 @@ protected function getStorage()
* @param RequestInterface $request
*
* @return $this
*
* @deprecated This function will be removed in 0.7.0. It will be replaced by setHttpAdapter
*/
public function setRequest(RequestInterface $request)
{
Expand Down Expand Up @@ -636,6 +644,8 @@ public function setFormat($format)
* Get headers from last response.
*
* @return array|null
*
* @deprecated This function will be removed in 0.7.0. It will be replaced by getLastResponse
*/
public function getLastHeaders()
{
Expand Down

0 comments on commit 322b361

Please sign in to comment.