Example #1
0
 public function __construct(SpiderStatus $status = null)
 {
     if ($status) {
         $json = array('empty' => false, 'current' => $status->getCurrent(), 'visited' => $status->getVisited(), 'gathered' => $status->getGathered(), 'elapsed' => $status->getElapsedTime(), 'finished' => $status->isFinished());
     } else {
         $json = array('empty' => true);
     }
     parent::__construct($json);
 }