PAMI\Message\Action\LoginAction::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $user, string $password, string | null $eventMask = null ) : void
$user string AMI username.
$password string AMI password.
$eventMask string | null
return void
    public function __construct($user, $password, $eventMask = null)
    {
        parent::__construct('Login');
        $this->setKey('Username', $user);
        $this->setKey('Secret', $password);
        if (null !== $eventMask) {
            $this->setKey('Events', $eventMask);
        }
    }
LoginAction