/** * @inheritdoc */ public function getFile() { if ($this->file === null) { try { $this->file = $this->transport->getFile(); } catch (\RuntimeException $e) { throw new TransportException(sprintf('Could not open file "%s": %s', $this->transport->getDestination(), $e->getMessage()), null, $e); } } return $this->file; }