3 declare(strict_types=1);
15 use DateTimeImmutable;
111 if (is_null($this->
id)) {
113 $data = $this->
raw(self::FIELD_ID);
114 if (is_null($data)) {
117 $this->
id = (string) $data;
131 if (is_null($this->name)) {
133 $data = $this->
raw(self::FIELD_NAME);
134 if (is_null($data)) {
137 $this->name = (string) $data;
151 if (is_null($this->scope)) {
153 $data = $this->
raw(self::FIELD_SCOPE);
154 if (is_null($data)) {
157 $this->scope = (string) $data;
172 if (is_null($this->secret)) {
174 $data = $this->
raw(self::FIELD_SECRET);
175 if (is_null($data)) {
178 $this->secret = (string) $data;
192 if (is_null($this->lastUsedAt)) {
194 $data = $this->
raw(self::FIELD_LAST_USED_AT);
195 if (is_null($data)) {
199 if (
false === $data) {
202 $this->lastUsedAt = $data;
216 if (is_null($this->deleteAt)) {
218 $data = $this->
raw(self::FIELD_DELETE_AT);
219 if (is_null($data)) {
223 if (
false === $data) {
226 $this->deleteAt = $data;
240 if (is_null($this->createdAt)) {
242 $data = $this->
raw(self::FIELD_CREATED_AT);
243 if (is_null($data)) {
247 if (
false === $data) {
250 $this->createdAt = $data;
264 if (is_null($this->accessTokenValiditySeconds)) {
266 $data = $this->
raw(self::FIELD_ACCESS_TOKEN_VALIDITY_SECONDS);
267 if (is_null($data)) {
270 $this->accessTokenValiditySeconds = (int) $data;
284 if (is_null($this->refreshTokenValiditySeconds)) {
286 $data = $this->
raw(self::FIELD_REFRESH_TOKEN_VALIDITY_SECONDS);
287 if (is_null($data)) {
290 $this->refreshTokenValiditySeconds = (int) $data;
370 #[\ReturnTypeWillChange]
385 return (
object) $data;