Ejemplo n.º 1
0
 /**
  * Serialize a class to use in a .yml file.
  * This should return a array which will be serialized by the caller.
  *
  * @return array
  */
 public function yamlSerialize()
 {
     $yaml = array('activePreset' => $this->activePreset->getName());
     $options = array();
     foreach ($this->options as $option) {
         $options[] = $option->yamlSerialize();
     }
     $yaml['options'] = $options;
     return $yaml;
 }