public function JsonWebToken::__construct in JSON Web Token Authentication (JWT) 8
Same name and namespace in other branches
- 8.0 src/JsonWebToken/JsonWebToken.php \Drupal\jwt\JsonWebToken\JsonWebToken::__construct()
JsonWebToken constructor.
Parameters
object $jwt: The Object to turn into a JWT.
File
- src/
JsonWebToken/ JsonWebToken.php, line 25
Class
- JsonWebToken
- Class JsonWebToken.
Namespace
Drupal\jwt\JsonWebTokenCode
public function __construct($jwt = NULL) {
$jwt = is_null($jwt) ? new \stdClass() : $jwt;
$this->payload = $jwt;
}