protected function getAllProjects(InputInterface $input)
    {
        $projects = $this->api()->getProjects();
        if ($input->getOption('sort')) {
            $this->api()->sortResources($projects, $input->getOption('sort'));
        }
        if ($input->getOption('reverse')) {
            $projects = array_reverse($projects, true);
        }

        return $projects;
    }
protected function getAllProjects(InputInterface $input)
    {
        $projects = $this->api()->getProjects();
        if ($input->getOption('sort')) {
            $this->api()->sortResources($projects, $input->getOption('sort'));
        }
        if ($input->getOption('reverse')) {
            $projects = array_reverse($projects, true);
        }

        return $projects;
    }
protected function getAllProjects ( InputInterface $ input ) { $ projects = $ this -> api ( ) -> getProjects ( ) ; if ( $ input -> getOption ( 'sort' ) ) { $ this -> api ( ) -> sortResources ( $ projects , $ input -> getOption ( 'sort' ) ) ; } if ( $ input -> getOption ( 'reverse' ) ) { $ projects = array_reverse ( $ projects , true ) ; } return $ projects ; }
Get a list of the user's projects, sorted according to the input.

@param InputInterface $input

@return \Platformsh\Client\Model\Project[]
Get a list of the user s projects sorted according to the input .