public function __construct($pdfFile) { if (!file_exists($pdfFile)) { throw new PdfDoesNotExist(); } $this->pdfFile = $pdfFile; }