You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function __get($offset)
{
switch ($offset) {
case 'TIME_ZONE_OFFSET':
return (int)$this->data[$offset];
case 'LAST_LOGIN':
case 'DATE_REGISTER':
case 'UF_EMPLOYMENT_DATE':
if ($this->data[$offset] !== '') {
return DateTimeImmutable::createFromFormat(DATE_ATOM, $this->data[$offset]);
}
break;
case 'IS_ONLINE':
return $this->data[$offset] === 'Y';
}
return $this->data[$offset] ?? null;
}
The text was updated successfully, but these errors were encountered:
public function __get($offset)
{
switch ($offset) {
case 'TIME_ZONE_OFFSET':
return (int)$this->data[$offset];
case 'LAST_LOGIN':
case 'DATE_REGISTER':
case 'UF_EMPLOYMENT_DATE':
if ($this->data[$offset] !== '') {
return DateTimeImmutable::createFromFormat(DATE_ATOM, $this->data[$offset]);
}
break;
case 'IS_ONLINE':
return $this->data[$offset] === 'Y';
}
The text was updated successfully, but these errors were encountered: