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';
}
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'; }