public function addAttribute(Attribute$attribute) : Attributes
	{
		$this->getItems();//max sure is array
		$this->attributes[$attribute->getName()] = $attribute;
		return $this;
	}
public function addAttribute(Attribute$attribute) : Attributes
	{
		$this->getItems();//max sure is array
		$this->attributes[$attribute->getName()] = $attribute;
		return $this;
	}
public function addAttribute ( Attribute $ attribute ) : Attributes { $ this -> getItems ( ) ; //max sure is array $ this -> attributes [ $ attribute -> getName ( ) ] = $ attribute ; return $ this ; }
Add attribute to collection

@param Attribute $attribute

@return Attributes
Add attribute to collection