public function agent($name)
    {
        if (!is_string($name) || empty($name)) {
            throw new PhpSmsException('Expected the parameter to be non-empty string.');
        }
        $this->firstAgent = $name;

        return $this;
    }
public function agent($name)
    {
        if (!is_string($name) || empty($name)) {
            throw new PhpSmsException('Expected the parameter to be non-empty string.');
        }
        $this->firstAgent = $name;

        return $this;
    }
public function agent ( $ name ) { if ( ! is_string ( $ name ) || empty ( $ name ) ) { throw new PhpSmsException ( 'Expected the parameter to be non-empty string.' ) ; } $ this -> firstAgent = $ name ; return $ this ; }
Set the first agent.

@param string $name

@throws PhpSmsException

@return $this
Set the first agent .