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