/** * Serialize this instance as YAML. * * @return string */ public function asYaml() { return Yaml::encode($this); }