filepath = 'db4:'; $source->uid = sha1($source->resource); $source->timestamp = 0; $source->exists = true; } public function getContent(Source $source) { if ($source instanceof Config) { return "foo = 'bar'\n"; } return '{$x="hello world"}{$x}'; } }