/** * Predefine an Attribute with the given Instance * * @param Attribute $attribute * @return Table */ function addAttribute(Attribute $attribute) { $attribute->setRelation($this); $this->attributes[$attribute->getName()] = $attribute; return $this; }