/** * 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; }
/** * Returns the Attribute's fully qualified name * * @param Attribute $attribute * @return string */ protected function visitSirelAttributeAttribute(Attribute $attribute) { return $this->visit($attribute->getRelation()) . "." . $attribute->getName(); }