public function __construct(array $changeInfos) { $this->changeInfos = $changeInfos; $this->count = $this->countUniqueChanges($changeInfos); }