/** * @return array */ public function resolveDependencies() { $dependencies = array(); if ($this->snippet instanceof Document_Snippet) { $key = "document_" . $this->snippet->getId(); $dependencies[$key] = array("id" => $this->snippet->getId(), "type" => "document"); } return $dependencies; }