sources[] = new FileSource($file, $extensionId); return $this; } /** * @param callable $callback * @return $this */ public function addString(callable $callback) { $this->sources[] = new StringSource($callback); return $this; } /** * @return SourceInterface[] */ public function getSources() { return $this->sources; } }