public function addAttribute($name, $value) { $this->attributes[$name] = new ArticleAttribute($name, $value, $this); return $this; }