pssht
latest
SSH server library written in PHP
Main Page
Classes
Files
File List
IGNORE.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
class
IGNORE
implements
MessageInterface
18
{
20
protected
$data
;
21
28
public
function
__construct
(
$data
)
29
{
30
if
(!is_string(
$data
)) {
31
throw
new \InvalidArgumentException();
32
}
33
34
$this->data =
$data
;
35
}
36
37
public
static
function
getMessageId
()
38
{
39
return
2;
40
}
41
42
public
function
serialize
(\
fpoirotte
\Pssht\Wire\
Encoder
$encoder)
43
{
44
$encoder->encodeString($this->data);
45
return
$this;
46
}
47
48
public
static
function
unserialize
(\
fpoirotte
\Pssht\Wire\
Decoder
$decoder)
49
{
50
return
new
static
($decoder->decodeString());
51
}
52
59
public
function
getData
()
60
{
61
return
$this->data
;
62
}
63
}
fpoirotte\Pssht\Messages\IGNORE\getData
getData()
Definition:
IGNORE.php:59
fpoirotte\Pssht\Messages\MessageInterface
Definition:
MessageInterface.php:17
fpoirotte\Pssht\Messages\IGNORE\getMessageId
static getMessageId()
Definition:
IGNORE.php:37
fpoirotte\Pssht\Messages
Definition:
Base.php:12
fpoirotte\Pssht\Messages\IGNORE\__construct
__construct($data)
Definition:
IGNORE.php:28
fpoirotte\Pssht\Messages\IGNORE\serialize
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
Definition:
IGNORE.php:42
fpoirotte\Pssht\Wire\Decoder
Definition:
Decoder.php:17
fpoirotte\Pssht\Messages\IGNORE\unserialize
static unserialize(\fpoirotte\Pssht\Wire\Decoder $decoder)
Definition:
IGNORE.php:48
fpoirotte\Pssht\Wire\Encoder
Definition:
Encoder.php:17
fpoirotte\Pssht\Messages\IGNORE\$data
$data
Payload for the ignore message.
Definition:
IGNORE.php:20
fpoirotte
fpoirotte\Pssht\Messages\IGNORE
Definition:
IGNORE.php:17
src
Messages
IGNORE.php
Generated on Tue May 9 2017 12:09:56 for pssht by
1.8.11