Kraken\Util\Parser\ParserInterface::encode PHP Метод

encode() публичный Метод

Encode the object to string.
public encode ( mixed $mixed ) : string
$mixed mixed
Результат string
    public function encode($mixed);

Usage Example

Пример #1
0
 /**
  * @dataProvider parsersProvider
  */
 public function testApiEncode_EncodesArrayToJson_ForDefaultDecoder(ParserInterface $parser)
 {
     $this->assertEquals($this->getString(), $parser->encode($this->getArray()));
 }
All Usage Examples Of Kraken\Util\Parser\ParserInterface::encode
ParserInterface