for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace rhertogh\Yii2Oauth2Server\models\traits;
trait Oauth2TokenTrait
{
/**
* @inheritDoc
*/
public function setRevokedStatus($isRevoked)
$this->enabled = (int)!$isRevoked;
enabled
}
public function getRevokedStatus()
return !$this->enabled;