public function add($id){ if(Source::exists($id)){ $this->files[] = $id; Redis::sadd("Repository.Source::{$this->id}", $id); } }