public function getAttributes() { if (!$this->_attributes) { $this->_attributes = new TAttributeCollection(); } return $this->_attributes; }