protected function setAttribute($attribute, $value = null) { if (is_null($value)) { return; } $this->attributes[$attribute] = $value; }