for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LibSSH2;
/**
* Terminal class.
*
* Setter/getter class for terminal environment.
* @package LibSSH2
*/
class Terminal
{
* Interactive connection (pseudo-tty)
* @var string
private $pty = NULL;
* Environmental variables (associative array).
* @var array
private $env = [];
* Width of the virtual terminal.
* @var int
private $width = 80;
* Height of the virtual terminal.
private $height = 25;
* Sets interactive connection (pseudo-tty).
* @param string $pty pseudo-tty
* @return object
final public function set_pty($pty)
$this->pty = $pty;
return $this;
}
* Sets environmental variables.
* @param array $env environmental variables
final public function set_env($env)
$this->env = $env;
* Sets width of virtual terminal.
* @param int $width width of virtual terminal
final public function set_width($width)
$this->width = $width;
* Sets height of virtual terminal.
* @param int $height height of virtual terminal
final public function set_height($height)
$this->height = $height;
* Gets interactive connection (pseudo-tty).
* @return string
final public function get_pty()
return $this->pty;
* Gets environmental variables.
* @return array
final public function get_env()
return $this->env;
* Gets width of virtual terminal.
* @return int
final public function get_width()
return $this->width;
* Gets height of virtual terminal.
final public function get_height()
return $this->height;