public function getNewRegistrationIds()
    {
        if ($this->getNewRegistrationIdsCount() == 0) {
            return array();
        }
        $filteredResults = array_filter(
            $this->results,
            function ($result) {
                return isset($result['registration_id']);
            }
        );

        $data = array_map(function ($result) {
                return $result['registration_id'];
        }, $filteredResults);

        return $data;
    }
public function getNewRegistrationIds()
    {
        if ($this->getNewRegistrationIdsCount() == 0) {
            return array();
        }
        $filteredResults = array_filter(
            $this->results,
            function ($result) {
                return isset($result['registration_id']);
            }
        );

        $data = array_map(function ($result) {
                return $result['registration_id'];
        }, $filteredResults);

        return $data;
    }
public function getNewRegistrationIds ( ) { if ( $ this -> getNewRegistrationIdsCount ( ) == 0 ) { return array ( ) ; } $ filteredResults = array_filter ( $ this -> results , function ( $ result ) { return isset ( $ result [ 'registration_id' ] ) ; } ) ; $ data = array_map ( function ( $ result ) { return $ result [ 'registration_id' ] ; } , $ filteredResults ) ; return $ data ; }
Return an array of expired registration ids linked to new id
All old registration ids must be updated to new ones in DB

@return array oldRegistrationId => newRegistrationId
Return an array of expired registration ids linked to new id All old registration ids must be updated to new ones in DB