Phalcon\Cli\Environment\Environment::isInteractive PHP Method

isInteractive() public method

public isInteractive ( integer | resource $fd = EnvironmentInterface::STDOUT ) : boolean
$fd integer | resource File descriptor, must be either a file resource or an integer [Optional]
return boolean
    public function isInteractive($fd = EnvironmentInterface::STDOUT)
    {
        return function_exists('posix_isatty') && @posix_isatty($fd);
    }