public function end() { if ($this->parent) { $this->parent->addAttachment($this->create()); return $this->parent; } return $this; }