44 if (!is_string(
$user)) {
45 throw new \InvalidArgumentException();
48 throw new \InvalidArgumentException();
51 throw new \InvalidArgumentException();
66 $encoder->encodeString($this->user);
67 $encoder->encodeString($this->service);
68 $encoder->encodeString($this->method);
90 throw new \RuntimeException();
95 $reflector = new \ReflectionClass(get_called_class());
98 $decoder->decodeString(),
99 $decoder->decodeString(),
100 $decoder->decodeString()
102 static::unserializeSub($decoder)
104 return $reflector->newInstanceArgs($args);
__construct($user, $service, $method)
$method
Authentication method.
static unserialize(\fpoirotte\Pssht\Wire\Decoder $decoder)
$user
User being authenticated.
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
static unserializeSub(\fpoirotte\Pssht\Wire\Decoder $decoder)
$service
Service to start after authentication.