예제 #1
0
 /**
  * Constructor
  *
  * @throws InvalidArgumentException If something is wrong with STDIN.
  * This exception was never observed.
  */
 public function __construct()
 {
     parent::__construct(STDIN);
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param resource $fd An open file descriptior
  *
  * @throws InvalidArgumentException  if gettype($fd) !== 'integer'
  */
 public function __construct($fd = STDOUT)
 {
     parent::__construct($fd);
     $this->ansiEnabled = TRUE;
 }