public static function getConfiguration(string $input) {
    list($oldrev, $newrev, $refname) = explode(' ', $input);
    list(,, $branch) = explode('/', $refname);
    return new ParserVariableConfiguration($oldrev, $newrev, $refname, $branch);
  }
public static function getConfiguration(string $input) {
    list($oldrev, $newrev, $refname) = explode(' ', $input);
    list(,, $branch) = explode('/', $refname);
    return new ParserVariableConfiguration($oldrev, $newrev, $refname, $branch);
  }
public static function getConfiguration ( string $ input ) { list ( $ oldrev , $ newrev , $ refname ) = explode ( ' ' , $ input ) ; list ( , , $ branch ) = explode ( '/' , $ refname ) ; return new ParserVariableConfiguration ( $ oldrev , $ newrev , $ refname , $ branch ) ; }
Extracts data from the post-receive hook as configuration for easy use.

@param string $input
Input to the post-receive git hook

@return \Hedron\Configuration\ParserVariableConfiguration
A simple configuration object.
Extracts data from the post - receive hook as configuration for easy use .