for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Alexandre
* Date: 07/03/2018
* Time: 21:57
*/
namespace OAuth2\Credentials;
class AuthorizationCode implements AuthorizationCodeInterface
{
* @var string
protected $code;
* @var string[]
protected $scopes;
protected $clientIdentifier;
protected $resourceOwnerIdentifier;
* @var string[]|null
protected $requestedScopes;
* @var string|null
protected $redirectUri;
* @var \DateTimeInterface
protected $expiresAt;
public function __construct(string $code, string $scopes, string $clientIdentifier, string $resourceOwnerIdentifier,
int $expiresAt, ?array $requestedScopes = null, ?string $redirectUri = null)
$this->code = $code;
$this->scopes = $scopes;
$scopes
string
string[]
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->clientIdentifier = $clientIdentifier;
$this->resourceOwnerIdentifier = $resourceOwnerIdentifier;
$this->expiresAt = $expiresAt;
$expiresAt
integer
DateTimeInterface
$this->requestedScopes = $requestedScopes;
$this->redirectUri = $redirectUri;
}
* @return string
public function getCode(): string
return $this->code;
* @return array
public function getScopes(): array
return $this->scopes;
public function getClientIdentifier(): string
return $this->clientIdentifier;
public function getResourceOwnerIdentifier(): string
return $this->resourceOwnerIdentifier;
public function getExpiresAt(): \DateTimeInterface
return $this->expiresAt;
* @return null|string[]
public function getRequestedScopes(): ?array
return $this->requestedScopes;
* @return null|string
public function getRedirectUri(): ?string
return $this->redirectUri;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..