public function setRandomGenerator(RandomGeneratorInterface $randomGenerator) { $this->randomGenerator = $randomGenerator; return $this; }