title: PHP getter/setter to array
body: <p>Following "problem"</p>
  
  <p>PHP Class with a lot of propertys. A lot of Getters / Setter.</p>
  
  <p>Is there any nice solution to convert all propertys to an array?</p>
  
  <pre><code>protected $name;
  protected $date;
  
  public function getName();
  public function getDate();
  public function asArray(); // call all getters?
  </code></pre>