public function __construct(Xml\FieldTypeHashGenerator $hashGenerator) { $this->hashGenerator = $hashGenerator; }