public function getTasks()
    {
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
            return [];
        }

        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
            return [];
        }

        if (array_key_exists($this->stage, $this->configuration['environments'][$this->environment])) {
            if (is_array($this->configuration['environments'][$this->environment][$this->stage])) {
                return $this->configuration['environments'][$this->environment][$this->stage];
            }
        }

        return [];
    }
public function getTasks()
    {
        if (!array_key_exists('environments', $this->configuration) || !is_array($this->configuration['environments'])) {
            return [];
        }

        if (!array_key_exists($this->environment, $this->configuration['environments'])) {
            return [];
        }

        if (array_key_exists($this->stage, $this->configuration['environments'][$this->environment])) {
            if (is_array($this->configuration['environments'][$this->environment][$this->stage])) {
                return $this->configuration['environments'][$this->environment][$this->stage];
            }
        }

        return [];
    }
public function getTasks ( ) { if ( ! array_key_exists ( 'environments' , $ this -> configuration ) || ! is_array ( $ this -> configuration [ 'environments' ] ) ) { return [ ] ; } if ( ! array_key_exists ( $ this -> environment , $ this -> configuration [ 'environments' ] ) ) { return [ ] ; } if ( array_key_exists ( $ this -> stage , $ this -> configuration [ 'environments' ] [ $ this -> environment ] ) ) { if ( is_array ( $ this -> configuration [ 'environments' ] [ $ this -> environment ] [ $ this -> stage ] ) ) { return $ this -> configuration [ 'environments' ] [ $ this -> environment ] [ $ this -> stage ] ; } } return [ ] ; }
Retrieve the defined Tasks for the current Environment and Stage

@return array
Retrieve the defined Tasks for the current Environment and Stage