protected function fetchDestinations(Task $task)
    {
        $sources = [];

        foreach ($task->getDestinations() as $source) {
            // locate new resource and merge them to the existing sources
            $sources[] = new SplFileInfo($source);
        }

        return $sources;
    }
protected function fetchDestinations(Task $task)
    {
        $sources = [];

        foreach ($task->getDestinations() as $source) {
            // locate new resource and merge them to the existing sources
            $sources[] = new SplFileInfo($source);
        }

        return $sources;
    }
protected function fetchDestinations ( Task $ task ) { $ sources = [ ] ; foreach ( $ task -> getDestinations ( ) as $ source ) { // locate new resource and merge them to the existing sources $ sources [ ] = new SplFileInfo ( $ source ) ; } return $ sources ; }
Fetch the destination files from the task and return and array of SplInfo.

@param Task $task
@return SplFileInfo[]
Fetch the destination files from the task and return and array of SplInfo .