| 1 |
<?php |
| 2 |
|
| 3 |
namespace Clue\Redis\Protocol\Model; |
| 4 |
|
| 5 |
use Clue\Redis\Protocol\Serializer\SerializerInterface; |
| 6 |
|
| 7 |
interface ModelInterface |
| 8 |
{ |
| 9 |
/** |
| 10 |
* Returns value of this model as a native representation for PHP |
| 11 |
* |
| 12 |
* @return mixed |
| 13 |
*/ |
| 14 |
public function getValueNative(); |
| 15 |
|
| 16 |
/** |
| 17 |
* Returns the serialized representation of this protocol message |
| 18 |
* |
| 19 |
* @param SerializerInterface $serializer; |
| 20 |
* @return string |
| 21 |
*/ |
| 22 |
public function getMessageSerialized(SerializerInterface $serializer); |
| 23 |
} |