$this->get_name_job_files(), 'database' => $this->get_name_job_database(), 'mixed' => $this->get_name_job_both(), ]; } /** * Get job type value * * @param string $type * * @return array */ public function job_type_map( string $type ): array { $types = [ 'files' => $this->get_type_job_file(), 'database' => $this->get_type_job_database(), 'mixed' => $this->get_type_job_both(), ]; return $types[ $type ] ?? []; } /** * Get the job name * * @param string $name The name of the job. * * @return string */ public function job_name_map( string $name ): string { $names = [ 'files' => $this->get_name_job_files(), 'database' => $this->get_name_job_database(), 'mixed' => $this->get_name_job_both(), ]; return $names[ $name ]; } }