code: public function setSize($size)
      {
          if ($this->getSize() !== $size) {
              $this->changed = true;
              parent::setSize($size);
          }
      }
docs: Set new size of collection.
  
  @param int $size