for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace rhertogh\Yii2Oauth2Server\components\authorization\client\base;
use rhertogh\Yii2Oauth2Server\interfaces\components\authorization\client\Oauth2ClientScopeAuthorizationRequestInterface;
use rhertogh\Yii2Oauth2Server\interfaces\models\Oauth2ScopeInterface;
use yii\base\Component;
abstract class Oauth2BaseClientScopeAuthorizationRequest extends Component implements Oauth2ClientScopeAuthorizationRequestInterface
{
/**
* @var Oauth2ScopeInterface|null
*/
protected $_scope = null;
* @var bool
protected bool $_isRequired = true;
protected bool $_isAccepted = false;
protected bool $_hasBeenRejectedBefore = false;
* @inheritDoc
public function getScope(): Oauth2ScopeInterface
return $this->_scope;
}
public function setScope(Oauth2ScopeInterface $scope)
$this->_scope = $scope;
return $this;
public function getIsRequired(): bool
return $this->_isRequired;
public function setIsRequired(bool $isRequired)
$this->_isRequired = $isRequired;
public function getIsAccepted(): bool
return $this->_isAccepted;
public function setIsAccepted(bool $isAccepted)
$this->_isAccepted = $isAccepted;
public function getHasBeenRejectedBefore(): bool
return $this->_hasBeenRejectedBefore;
public function setHasBeenRejectedBefore(bool $hasBeenRejectedBefore)
$this->_hasBeenRejectedBefore = $hasBeenRejectedBefore;