public function arguments(array $arguments = [])
    {
        if (empty($arguments)) {
            return $this->arguments;
        }

        foreach ($arguments as $key => $value) {
            if (!isset($this->requirements[$key])) {
                $this->arguments[$key] = $value;
                continue;
            }

            $this->assertArgumentValue($key, $this->requirements[$key], $value);
            $this->arguments[$key] = $value;
        }

        return $this->arguments;
    }
public function arguments(array $arguments = [])
    {
        if (empty($arguments)) {
            return $this->arguments;
        }

        foreach ($arguments as $key => $value) {
            if (!isset($this->requirements[$key])) {
                $this->arguments[$key] = $value;
                continue;
            }

            $this->assertArgumentValue($key, $this->requirements[$key], $value);
            $this->arguments[$key] = $value;
        }

        return $this->arguments;
    }
public function arguments ( array $ arguments = [ ] ) { if ( empty ( $ arguments ) ) { return $ this -> arguments ; } foreach ( $ arguments as $ key => $ value ) { if ( ! isset ( $ this -> requirements [ $ key ] ) ) { $ this -> arguments [ $ key ] = $ value ; continue ; } $ this -> assertArgumentValue ( $ key , $ this -> requirements [ $ key ] , $ value ) ; $ this -> arguments [ $ key ] = $ value ; } return $ this -> arguments ; }
Sets values for each argument in pattern

@param array $arguments

@return array
Sets values for each argument in pattern