for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodexShaper\OAuth2\Server\Entities;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
class Client implements ClientEntityInterface
{
use ClientTrait;
/**
* The client identifier.
*
* @var string
*/
protected $identifier;
* Create a new client instance.
* @param string $identifier
* @param string $name
* @param string $redirectUri
* @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, $isConfidential = false)
$this->setIdentifier((string) $identifier);
$this->name = $name;
$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.