toArray(); return array_intersect_key($user, array_flip([ User::COL_NAME_ID, User::COL_NAME_CONTRACT_ID, User::COL_NAME_ROLE, ])); } return null; } }