src/Transaction.php
public static function makeAliasSetInstance(string $address, string $alias): self
    {
        $transaction = new self();

        $transaction->setVersion(Version::ALIAS_SET);
        $transaction->setDestinationAddress($address);
        $transaction->setValue(self::VALUE_ALIAS_SET);
        $transaction->setFee(self::FEE_ALIAS_SET);
        $transaction->setMessage($alias);

        return $transaction;
    }
public static function makeAliasSetInstance(string $address, string $alias): self
    {
        $transaction = new self();

        $transaction->setVersion(Version::ALIAS_SET);
        $transaction->setDestinationAddress($address);
        $transaction->setValue(self::VALUE_ALIAS_SET);
        $transaction->setFee(self::FEE_ALIAS_SET);
        $transaction->setMessage($alias);

        return $transaction;
    }
public static function makeAliasSetInstance ( string $ address , string $ alias ) : self { $ transaction = new self ( ) ; $ transaction -> setVersion ( Version :: ALIAS_SET ) ; $ transaction -> setDestinationAddress ( $ address ) ; $ transaction -> setValue ( self :: VALUE_ALIAS_SET ) ; $ transaction -> setFee ( self :: FEE_ALIAS_SET ) ; $ transaction -> setMessage ( $ alias ) ; return $ transaction ; }
Retrieve a pre-populated Transaction instance for setting an alias.

@param string $address
@param string $alias
@return self
@api
Retrieve a pre - populated Transaction instance for setting an alias .