public function addArguments(?string $arguments = null)
    {
        $args = [];
        preg_match_all('/(?P<argument>\w+):(?P<value>[\w+\-]+)/', $arguments, $matches);
        if (isset($matches['argument'])) {
            foreach ($matches['argument'] as $key => $argKey) {
                if (isset($matches['value'][$key])) {
                    $args[$argKey] = $matches['value'][$key];
                }
            }
        }
        $this->arguments = $args;
    }
public function addArguments(?string $arguments = null)
    {
        $args = [];
        preg_match_all('/(?P<argument>\w+):(?P<value>[\w+\-]+)/', $arguments, $matches);
        if (isset($matches['argument'])) {
            foreach ($matches['argument'] as $key => $argKey) {
                if (isset($matches['value'][$key])) {
                    $args[$argKey] = $matches['value'][$key];
                }
            }
        }
        $this->arguments = $args;
    }
public function addArguments ( ? string $ arguments = null ) { $ args = [ ] ; preg_match_all ( '/(?P<argument>\w+):(?P<value>[\w+\-]+)/' , $ arguments , $ matches ) ; if ( isset ( $ matches [ 'argument' ] ) ) { foreach ( $ matches [ 'argument' ] as $ key => $ argKey ) { if ( isset ( $ matches [ 'value' ] [ $ key ] ) ) { $ args [ $ argKey ] = $ matches [ 'value' ] [ $ key ] ; } } } $ this -> arguments = $ args ; }
Add cron arguments.

@param string $arguments cron arguments
Add cron arguments .