public __construct ( string | array $options = null ) | ||
$options | string | array | either a command string or an options array (see setOptions()) |
public function __construct($options = null)
{
if (is_array($options)) {
$this->setOptions($options);
} elseif (is_string($options)) {
$this->setCommand($options);
}
}