/** * Set Next * * @param Bucket $next * * @param bool $synchronized * @return Bucket The current instance */ public function setNext(Bucket $next = null, $synchronized = true) { $this->next = $next; if ($next && $synchronized) { $next->setPrev($this, false); } return $this; }