public function PoStreamReader::close in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Gettext/PoStreamReader.php \Drupal\Component\Gettext\PoStreamReader::close()
Implements Drupal\Component\Gettext\PoStreamInterface::close().
Throws
\Exception If the stream is not open.
Overrides PoStreamInterface::close
File
- core/
lib/ Drupal/ Component/ Gettext/ PoStreamReader.php, line 168
Class
- PoStreamReader
- Implements Gettext PO stream reader.
Namespace
Drupal\Component\GettextCode
public function close() {
if ($this->fd) {
fclose($this->fd);
}
else {
throw new \Exception('Cannot close stream that is not open.');
}
}