public function getAttribute($name)
{
if ($name === 'id' && !isset($this->attributes['id'])) {
if ($this->is_stringified) {
throw new Exception\LogicException('Too late to generate random [id].');
}
$this->attributes['id'] = isset($this->properties['uid']) ? 'dora-input-' . $this->properties['uid'] : 'dora-input-' . $this->getUid();
}
return isset($this->attributes[$name]) ? $this->attributes[$name] : null;
}