original_string: public function setArguments(array $arguments)
      {
          foreach ($arguments as $arg) {
              if (!is_scalar($arg)) {
                  $type = gettype($arg);
                  throw new DomainException("Arguments array should be an array of scalar, but found $type");
              }
          }
  
          $this->arguments = $arguments;
  
          return $this;
      }
code: public function setArguments(array $arguments)
      {
          foreach ($arguments as $arg) {
              if (!is_scalar($arg)) {
                  $type = gettype($arg);
                  throw new DomainException("Arguments array should be an array of scalar, but found $type");
              }
          }
  
          $this->arguments = $arguments;
  
          return $this;
      }
code_tokens: public function setArguments ( array $ arguments ) { foreach ( $ arguments as $ arg ) { if ( ! is_scalar ( $ arg ) ) { $ type = gettype ( $ arg ) ; throw new DomainException ( "Arguments array should be an array of scalar, but found $type" ) ; } } $ this -> arguments = $ arguments ; return $ this ; }
docstring: Set the block's arguments
  
  @param array $arguments [required] An array of arguments
  @return $this
  @throws DomainException
docstring_tokens: Set the block s arguments