for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Alexandre
* Date: 30/12/2017
* Time: 16:42
*/
namespace OAuth2OLD\Role;
* Class ResourceOwner
* @package OAuth2\roles
*
* @see https://tools.ietf.org/html/rfc6749#section-1.1
* Roles
* An entity capable of granting access to a protected resource.
* When the resource owner is a person, it is referred to as an
* end-user.
class ResourceOwner
{
* @var bool
protected $authenticated = false;
public function __construct(bool $authenticated = false)
$this->authenticated = $authenticated;
}
* @return bool
public function isAuthenticated(): bool
return $this->authenticated;
* @param bool $authenticated
public function setAuthenticated(bool $authenticated): void