private function getActivities(InputInterface $input, $limit = 0)
    {
        if ($this->hasSelectedEnvironment() && !$input->getOption('all')) {
            return $this->getSelectedEnvironment()
                ->getActivities($limit, $input->getOption('type'));
        }

        return $this->getSelectedProject()
            ->getActivities($limit, $input->getOption('type'));
    }
private function getActivities(InputInterface $input, $limit = 0)
    {
        if ($this->hasSelectedEnvironment() && !$input->getOption('all')) {
            return $this->getSelectedEnvironment()
                ->getActivities($limit, $input->getOption('type'));
        }

        return $this->getSelectedProject()
            ->getActivities($limit, $input->getOption('type'));
    }
private function getActivities ( InputInterface $ input , $ limit = 0 ) { if ( $ this -> hasSelectedEnvironment ( ) && ! $ input -> getOption ( 'all' ) ) { return $ this -> getSelectedEnvironment ( ) -> getActivities ( $ limit , $ input -> getOption ( 'type' ) ) ; } return $ this -> getSelectedProject ( ) -> getActivities ( $ limit , $ input -> getOption ( 'type' ) ) ; }
Get activities on the project or environment.

@param \Symfony\Component\Console\Input\InputInterface $input
@param int                                             $limit

@return \Platformsh\Client\Model\Activity[]
Get activities on the project or environment .