title: What does "return $this" mean?
body: <p>I'm trying to understand this code, and when I arrived at the final line, I didn't get it. :(</p>
  
  <p><strong>Can I have your help in order to find out, what does <code>return $this</code> mean ?</strong></p>
  
  <pre><code>public function setOptions(array $options) {
      $methods = get_class_methods($this);
      foreach ($options as $key =&gt; $value) {
          $method = 'set' . ucfirst($key);
          if (in_array($method, $methods)) {
              $this-&gt;$method($value);
          }
      }
  
      //???? - return what ?
      return $this;
  }
  </code></pre>
  
  <p><strong>Update:</strong><br>
  I've removed my comments for better clarification.</p>