public function __construct(CollectionInterface $collection, $locale) { $this->entity = $collection; $this->locale = $locale; }