last_login->format($format);
}
public function reverseName()
{
return strrev($this->name);
}
public function __set($name, $value)
{
if ($name === 'lastLogin') {
$this->last_login = DateTime::createFromFormat('U', $value);
}
}
public function __get($name)
{
if (isset($this->$name)) {
return $this->$name;
}
}
}