Jyxo\Svn\Result::parse PHP Method

parse() protected method

Parses SVN binary output according to the action.
protected parse ( string $action, string $input ) : array
$action string SVN action
$input string SVN binary output
return array
    protected function parse(string $action, string $input) : array
    {
        switch ($action) {
            case 'add':
            case 'status':
                return $this->parseStatus($input);
            case 'commit':
                return $this->parseCommit($input);
            case 'update':
                return $this->parseUpdate($input);
            default:
                // Do nothing
                return [];
        }
    }