src/Database/Migration/Config.php
public function getEnvironments()
    {
        if (isset($this->values['environments'])) {
            $environments = [];
            foreach ($this->values['environments'] as $key => $value) {
                if (is_array($value)) {
                    $environments[$key] = $value;
                }
            }

            return $environments;
        }

        return null;
    }
public function getEnvironments()
    {
        if (isset($this->values['environments'])) {
            $environments = [];
            foreach ($this->values['environments'] as $key => $value) {
                if (is_array($value)) {
                    $environments[$key] = $value;
                }
            }

            return $environments;
        }

        return null;
    }
public function getEnvironments ( ) { if ( isset ( $ this -> values [ 'environments' ] ) ) { $ environments = [ ] ; foreach ( $ this -> values [ 'environments' ] as $ key => $ value ) { if ( is_array ( $ value ) ) { $ environments [ $ key ] = $ value ; } } return $ environments ; } return null ; }
Returns the configuration for each environment.

This method returns <code>null</code> if no environments exist.

@return array|null
Returns the configuration for each environment .