Sets descriptions of arguments
[
'Email' => 'The email of the user'
]
@param array $argData
@return  $this
161649
public function setArgDescriptions(array $argData)
    {
        foreach ($argData as $argName => $description) {
            /* @var ArgumentScaffolder $arg */
            $arg = $this->args->find('argName', $argName);
            if (!$arg) {
                throw new InvalidArgumentException(sprintf(
                    'Tried to set description for %s, but it was not added to %s',
                    $argName,
                    $this->operationName ?: '(unnamed operation)'
                ));
            }

            $arg->setDescription($description);
        }

        return $this;
    }
788620
protected function set_request_args( $args ) {

		$this->request_method = $args['method'];
		$this->request_path   = isset( $args['path'] ) ? $args['path'] : null;
		$this->request_params = isset( $args['params'] ) ? $args['params'] : null;
		$this->request_body   = isset( $args['body'] ) ? $args['body'] : null;

		// set the top-level JSON object namespace if not already set, this is mainly
		// a convenience for client code so creating/updating resources doesn't need a
		// nested array like array( 'order_note' => array( 'note' => 'foo' ) ) and can instead
		// use array( 'note' => 'foo' ) ʘ‿ʘ
		if ( $this->request_body && ! isset( $args['body'][ $this->object_namespace ] ) ) {

			$this->request_body = array(
				$this->object_namespace => $this->request_body,
			);
		}

		// convert bool true to string 'true', required for DELETE endpoints
		if ( isset( $this->request_params['force'] ) && $this->request_params['force'] ) {
			$this->request_params['force'] = 'true';
		}
	}
404741
protected function _SetRequestArguments($ParamsType, $ParamsData = NULL) {
      switch ($ParamsType) {
         case self::INPUT_GET:
            $ArgumentData = $_GET;
            break;
            
         case self::INPUT_POST:
            $ArgumentData = $_POST;
            break;
            
         case self::INPUT_SERVER:
            $ArgumentData = $_SERVER;
            break;
            
         case self::INPUT_FILES:
            $ArgumentData = $_FILES;
            break;
            
         case self::INPUT_ENV:
            $ArgumentData = $_ENV;
            break;
            
         case self::INPUT_COOKIES:
            $ArgumentData = $_COOKIE;
            break;
            
         case self::INPUT_CUSTOM:
            $ArgumentData = is_array($ParamsData) ? $ParamsData : array();
            break;
      
      }
      $this->_RequestArguments[$ParamsType] = $ArgumentData;
   }
1244887
public function news($newsData=array())
	{

		$count = count($newsData);

		$msg = array(
			'ToUserName' => $this->getRevFrom(),
			'FromUserName'=>$this->getRevTo(),
			'MsgType'=>self::MSGTYPE_NEWS,
			'CreateTime'=>time(),
			'ArticleCount'=>$count,
			'Articles'=>$newsData,

		);
		$this->Message($msg);
		return $this;
	}
1239489
public function setCommand(string $args): self
	{
		if ($this->mailer instanceof SendmailMailer) {
			$this->mailer->commandArgs = $args;
		}
		return $this;
	}
1344716
public function setMediaId($arg) {
        if (empty($this->type)) {
            $this->setType(self::MEDIA);
        }
        $this->mediaId = $arg;
        return $this;
    }
1320553
public function with($arg)
    {
        $args = func_get_args();

        if (is_array($args[0])) {
            $this->setWith($args[0]);

            return $this;
        }

        foreach ($args as $arg) {
            if (is_string($arg)) {
                $this->addWith($arg);
            }

            return $this;
        }

        throw new DatabaseException('The arguments for with() don\'t fit');
    }
1049811
public function send(array $args) {
        if (!$this->_validateArgs($args)) {
            return;
        }

        $mailer = new Garp_Mailer;

        if (getenv('CLI_EMAIL_SENDER')) {
            $mailer->setFromAddress(getenv('CLI_EMAIL_SENDER'));
        }

        $email = array(
            'to' => $args['to'],
            'subject' => $args['subject'],
            'message' => $args['message'],
        );

        try {
            $mailer->send($email);
            Garp_Cli::lineOut('Email sent!');
        } catch(Exception $e) {
            Garp_Cli::errorOut($e->getMessage());
        }
    }
439600
public function setKey($arg) {
        $this->setType(self::CLICK);
        $this->key = $arg;
        return $this;
    }
1140201
public function setMode($arg) {
        $this->mode = strtolower($arg) == self::LIVE ? self::LIVE : self::SANDBOX;
        return $this;
    }
528932
private function setData($data) {

		if(false === is_array($data)) {
   			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type array, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
   		}

		$this -> data = $data;
	}
63708
public function setCurrentAction($action,array $actionArgs = array()){
        $action = (string) $action;
        if (array_key_exists($action,$this->actions)){
            $this->action = $action;
            $this->configureAction($this->action,$actionArgs);
        }
        return $this;
    }
1053705
public function setArgsRequired($argData)
    {
        foreach ($argData as $argName => $required) {
            /* @var ArgumentScaffolder $arg */
            $arg = $this->args->find('argName', $argName);
            if (!$arg) {
                throw new InvalidArgumentException(sprintf(
                    'Tried to make arg %s required, but it was not added to %s',
                    $argName,
                    $this->operationName ?: '(unnamed operation)'
                ));
            }

            $arg->setRequired($required);
        }

        return $this;
    }
110109
public function create($data, $params = [])
    {
        $argumentDescriptor = new ArgumentDescriptor();
        $argumentDescriptor->setName($data->getName());
        $argumentDescriptor->setType($data->getType());

        foreach ($params as $paramDescriptor) {
            $this->overwriteTypeAndDescriptionFromParamTag($data, $paramDescriptor, $argumentDescriptor);
        }

        $argumentDescriptor->setDefault($data->getDefault());
        $argumentDescriptor->setByReference($data->isByReference());

        return $argumentDescriptor;
    }
815448
public function setAjaxConfig($arg1, $arg2 = null)
    {
        if (is_array($arg1)) {
            $this->ajaxConfig = $arg1;
        } else {
            $this->ajaxConfig[$arg1] = $arg2;
        }
        
        return $this;
    }
332338
protected function setParams(array $args)
    {
        if (!empty($args)) {
            $request = '?';
        } else {
            $request = '';
        }

        foreach ($args as $key => $value) {
            if (is_numeric($key)) {
                if ($request != '?') {
                    $request .= '&';
                }
                $request .= $value;
            } elseif (is_string($key)) {
                if ($request != '?') {
                    $request .= '&';
                }
                $request .= $key.'='.$value;
            }
        }

        return $request;
    }
98144
public function addArgument($arg)
    {
        if (!is_scalar($arg)) {
            throw new InvalidArgumentException('scalar', 0);
        }
        if (!in_array($arg, $this->arguments)) {
            $this->arguments[] = $arg;
        }

        return $this;
    }