I am new to Design Pattern and I was looking on how I can improve my existing code, so your advice are greatly appreciated.Problem:I want to generate and get related attributes based on Database table name. For example table name : meetingsCurrently I just passed the table name to a Service class to generate all the attributes for me$table_name = 'meetings';$table_parameters = $this->TableParameterService->generateTableParameters($table_name);Inside the TableParameterServiceclass TableParameterService{    public function generateTableParameters($table_name)    {        //get singular variable, eg : $meeting        $singular_variable = $this->getSingleVariable($table_name);        //get plural variable, eg : $meetings        $plural_variable = $this->getPluralVariable($table_name);        return [          'singular_variable'=>$singular_variable,          'plural_variable'=>plural_variable        ];    }    public function getSingleVariable($table_name){       return $single_variable;    }}I know the codes is really bad, so the question is, how can I improve this to follow best practise of OOP and Design Pattern?Thanks! 
Suitable design pattern for this problem?
design patterns;php;object oriented design