[Translation] added method to expose collected message

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | #2435 
| License       | MIT
| Doc PR        | symfony/symfony-docs#3386
Why is this calculated instead of setting the value explicitly in the data provider?