Just `$this->tableName = (string) $tableName;`. No further code needed.