Example #1
0
 /**
  * Specify a minimum confidence level for the next fluent call.
  *
  * Note that this call must be used in a fluent context as it returns
  * a new instance of the agent inspector with the minimum confidence
  * threshold.
  * <?php
  * $is_mob = $agent->atLeast(T_Agent_Answer::LIKELY)
  *                 ->isMobile();
  * ?>
  *
  * @param int $confidence  confidence level
  * @return T_Agent_Level  agenet with same parsers and min confidence
  */
 function atLeast($confidence)
 {
     $agent = new self($confidence);
     foreach ($this->parsers as $p) {
         $agent->addParser($p);
     }
     return $agent;
 }