public function __get($item)
{
if (array_key_exists($item, $this->attributes)) {
return $this->attributes[$item];
}
// Get a child by snake case
$child = preg_replace_callback('/([A-Z])/', function ($match) {
return '.' . strtolower($match[1]);
}, $item);
$child = $this->getChild($child);
return $child;
}