i update package 5.6 to 5.7 version add get error CollectionType

Permalink
I update package 5.6 to 5.7 version adds get error CollectionType and getCollectionTypeID and getCollectionTypeName. What is alternative of these method in 5.7.3 version

$ctArray = CollectionType::getList('');
      $pageTypes = array();
       foreach($ctArray as $ct) {
      $pageTypes[$ct->getCollectionTypeID()] = $ct->getCollectionTypeName();      
       }