예제 #1
0
파일: Pool.php 프로젝트: phlib/beanstalk
 /**
  * @param ConnectionInterface $connection
  * @param integer $id
  * @return string
  */
 public function combineId(ConnectionInterface $connection, $id)
 {
     if (!is_numeric($id)) {
         throw new InvalidArgumentException('Specified job id must be a number.');
     }
     return "{$connection->getName()}.{$id}";
 }