chore: support for chaining in addScope

This commit is contained in:
Christy Jacob 2020-01-13 19:42:09 +05:30
parent 1f1e4e0def
commit cda8f27398

View file

@ -92,11 +92,12 @@ abstract class OAuth
*
* @return array
*/
protected function addScope(string $scope){
protected function addScope(string $scope):OAuth{
// Add a scope to the scopes array if it isn't already present
if (!in_array($scope, $this->scopes)){
$this->scopes[] = $scope;
}
return $this;
}
/**