In reply to AbdulRauf1251:
The function phase_ready_to_end gets called at the end of every task based phase when all objections have been dropped (or never raised at all).
Typically a scoreboard has a queue or some kind of array of transactions waiting to be checked sent from a monitor via an analysis_port write() method.