public function replace(array $attributes) { if (false === $this->started) { $this->start(); } $this->attributes = $attributes; }