for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Rinvex\Oauth\Bridge;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\ClientEntityInterface;
class Client implements ClientEntityInterface
{
use ClientTrait;
/**
* The client identifier.
*
* @var string
*/
protected $identifier;
* The client's user type.
public $userType;
* Create a new client instance.
* @param string $identifier
* @param string $name
* @param string $redirectUri
* @param string $userType
* @param bool $isConfidential
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($identifier, $name, $redirectUri, $userType, $isConfidential = false)
$this->setIdentifier((string) $identifier);
$this->name = $name;
$this->userType = $userType;
$this->isConfidential = $isConfidential;
$this->redirectUri = explode(',', $redirectUri);
}
* Get the client's identifier.
* @return string
public function getIdentifier()
return (string) $this->identifier;
* Set the client's identifier.
public function setIdentifier($identifier)
$this->identifier = $identifier;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.