private function addNameAndPattern($name, $pattern)
    {
        $this->arguments[] = $name;
        if ($pattern !== null) {
            $this->arguments[] = $pattern;
        }
    }
private function addNameAndPattern($name, $pattern)
    {
        $this->arguments[] = $name;
        if ($pattern !== null) {
            $this->arguments[] = $pattern;
        }
    }
private function addNameAndPattern ( $ name , $ pattern ) { $ this -> arguments [ ] = $ name ; if ( $ pattern !== null ) { $ this -> arguments [ ] = $ pattern ; } }
Add the passed name and the passed pattern if not null.

@param string      $name    The name to add.

@param null|string $pattern The pattern to add (if not null).

@return void
Add the passed name and the passed pattern if not null .