public function __construct($logFile) { if (!file_exists($logFile) || !is_readable($logFile)) { throw new Exception('Log file could not be read'); } $this->log = file_get_contents($logFile); }