Example #1
0
 /**
  * Creates a new Command object
  *
  * @param string $cmd
  * @param bool $noescape    If true the $cmd string will be escaped
  * @return Command - Fluent interface
  */
 public static function factory($cmd = null, $noescape = false)
 {
     $obj = new self();
     if ($cmd !== null) {
         $obj->command($cmd, $noescape);
     }
     return $obj;
 }