public function impersonateReseller($username, $validate = false)
    {
        return new ResellerContext($this->getConnection()->loginAs($username), $validate);
    }
public function impersonateReseller($username, $validate = false)
    {
        return new ResellerContext($this->getConnection()->loginAs($username), $validate);
    }
public function impersonateReseller ( $ username , $ validate = false ) { return new ResellerContext ( $ this -> getConnection ( ) -> loginAs ( $ username ) , $ validate ) ; }
Returns a new ResellerContext acting as the specified reseller.

@param string $username
@param bool $validate Whether to check the reseller exists and is a reseller
@return ResellerContext
Returns a new ResellerContext acting as the specified reseller .