original_string: protected function jobToText($job)
      {
          switch ($job['cmd']) {
              case 'install':
                  $packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
                  if (!$packages) {
                      return 'No package found to satisfy install request for '.$job['packageName'].$this->constraintToText($job['constraint']);
                  }
  
                  return 'Installation request for '.$job['packageName'].$this->constraintToText($job['constraint']).' -> satisfiable by '.$this->getPackageList($packages).'.';
              case 'update':
                  return 'Update request for '.$job['packageName'].$this->constraintToText($job['constraint']).'.';
              case 'remove':
                  return 'Removal request for '.$job['packageName'].$this->constraintToText($job['constraint']).'';
          }
  
          if (isset($job['constraint'])) {
              $packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
          } else {
              $packages = array();
          }
  
          return 'Job(cmd='.$job['cmd'].', target='.$job['packageName'].', packages=['.$this->getPackageList($packages).'])';
      }
code: protected function jobToText($job)
      {
          switch ($job['cmd']) {
              case 'install':
                  $packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
                  if (!$packages) {
                      return 'No package found to satisfy install request for '.$job['packageName'].$this->constraintToText($job['constraint']);
                  }
  
                  return 'Installation request for '.$job['packageName'].$this->constraintToText($job['constraint']).' -> satisfiable by '.$this->getPackageList($packages).'.';
              case 'update':
                  return 'Update request for '.$job['packageName'].$this->constraintToText($job['constraint']).'.';
              case 'remove':
                  return 'Removal request for '.$job['packageName'].$this->constraintToText($job['constraint']).'';
          }
  
          if (isset($job['constraint'])) {
              $packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
          } else {
              $packages = array();
          }
  
          return 'Job(cmd='.$job['cmd'].', target='.$job['packageName'].', packages=['.$this->getPackageList($packages).'])';
      }
code_tokens: protected function jobToText ( $ job ) { switch ( $ job [ 'cmd' ] ) { case 'install' : $ packages = $ this -> pool -> whatProvides ( $ job [ 'packageName' ] , $ job [ 'constraint' ] ) ; if ( ! $ packages ) { return 'No package found to satisfy install request for ' . $ job [ 'packageName' ] . $ this -> constraintToText ( $ job [ 'constraint' ] ) ; } return 'Installation request for ' . $ job [ 'packageName' ] . $ this -> constraintToText ( $ job [ 'constraint' ] ) . ' -> satisfiable by ' . $ this -> getPackageList ( $ packages ) . '.' ; case 'update' : return 'Update request for ' . $ job [ 'packageName' ] . $ this -> constraintToText ( $ job [ 'constraint' ] ) . '.' ; case 'remove' : return 'Removal request for ' . $ job [ 'packageName' ] . $ this -> constraintToText ( $ job [ 'constraint' ] ) . '' ; } if ( isset ( $ job [ 'constraint' ] ) ) { $ packages = $ this -> pool -> whatProvides ( $ job [ 'packageName' ] , $ job [ 'constraint' ] ) ; } else { $ packages = array ( ) ; } return 'Job(cmd=' . $ job [ 'cmd' ] . ', target=' . $ job [ 'packageName' ] . ', packages=[' . $ this -> getPackageList ( $ packages ) . '])' ; }
docstring: Turns a job into a human readable description
  
  @param  array  $job
  @return string
docstring_tokens: Turns a job into a human readable description