public function getStatus($packageKey, $versionNumber = null)
    {
        $status = array();
        $migrations = $this->getMigrations($versionNumber);
        foreach ($this->getPackagesData($packageKey) as &$this->currentPackageData) {
            $packageStatus = array();
            foreach ($migrations as $migration) {
                if ($this->hasMigrationApplied($migration)) {
                    $state = self::STATE_MIGRATED;
                } else {
                    $state = self::STATE_NOT_MIGRATED;
                }
                $packageStatus[$migration->getVersionNumber()] = array('migration' => $migration, 'state' => $state);
            }
            $status[$this->currentPackageData['packageKey']] = $packageStatus;
        }
        return $status;
    }