PHPDaemon\Core\ShellCommand::onRead PHP Method

onRead() protected method

Called when new data received
protected onRead ( ) : this | null
return this | null
    protected function onRead()
    {
        if (func_num_args() === 1) {
            $this->onRead = func_get_arg(0);
            return $this;
        }
        $this->event('read');
    }