/** * Constructor * * @throws InvalidArgumentException If something is wrong with STDIN. * This exception was never observed. */ public function __construct() { parent::__construct(STDIN); }
/** * 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; }