pssht  latest
SSH server library written in PHP
Base.php
1 <?php
2 
3 /*
4 * This file is part of pssht.
5 *
6 * (c) François Poirotte <clicky@erebot.net>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 
12 namespace fpoirotte\Pssht\Messages;
13 
17 abstract class Base implements MessageInterface
18 {
20  final public function __construct()
21  {
22  }
23 
24  final public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
25  {
26  return $this;
27  }
28 
29  final public static function unserialize(\fpoirotte\Pssht\Wire\Decoder $encoder)
30  {
31  return new static();
32  }
33 }
static unserialize(\fpoirotte\Pssht\Wire\Decoder $encoder)
Definition: Base.php:29
__construct()
Construct the message.
Definition: Base.php:20
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
Definition: Base.php:24