for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GorkaLaucirica\HipchatAPIv2Client\Auth;
class OAuth2 implements AuthInterface
{
protected $authToken;
/**
* OAuth2 constructor that receives an auth token. You can get one here: https://yourCompany.hipchat.com/account/api
*
* @param string $authToken Your OAuth2 auth token
* @return self
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
*/
public function __construct($authToken)
$this->authToken = $authToken;
}
* {@inheritdoc}
public function getCredential()
return "Bearer ".$this->authToken;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.