public static function setFilePath($filePath) { if (!$filePath && !self::$filePath) { throw new Exception('No path set!'); } self::$filePath = $filePath; }