for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Rinvex\Oauth;
class TransientToken
{
/**
* Determine if the token has a given scope.
*
* @param string $scope
* @return bool
*/
public function can($scope)
$scope
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return true;
}
* Determine if the token is missing a given scope.
public function cant($scope)
return false;
* Determine if the token is a transient JWT token.
public function transient()
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.