| 1 | <?php  | 
            ||
| 19 | class MysqlDumpBackupProcessor implements BackupProcessor  | 
            ||
| 20 | { | 
            ||
| 21 | private $db_name;  | 
            ||
| 22 | private $backupFilenameGenerator;  | 
            ||
| 23 | |||
| 24 | |||
| 25 | function __construct(string $db_name, BackupFileNameGenerator $backupFilenameGenerator)  | 
            ||
| 30 | |||
| 31 | public function execute() : BackupFile  | 
            ||
| 45 | |||
| 46 | private function getFilePath() : string  | 
            ||
| 50 | }  | 
            
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.