public function getContent() : string { $content = file_get_contents($this->getPathname()); if (false === $content) { throw new FileException(\sprintf('Could not get the content of the file "%s".', $this->getPathname())); } return $content; }