for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Threema GmbH
* @copyright Copyright (c) 2015-2016 Threema GmbH
*/
namespace Threema\MsgApi\Tools;
* Result of a Data Encryption
*
* @package Threema\MsgApi\Tool
class EncryptResult {
* @var string as binary
private $data;
private $key;
private $nonce;
* @var int
private $size;
* @param string $data (binary)
* @param string $key (binary)
* @param string $nonce (binary)
* @param int $size
public function __construct($data, $key, $nonce, $size) {
$this->data = $data;
$this->key = $key;
$this->nonce = $nonce;
$this->size = $size;
}
* @return int
public function getSize() {
return $this->size;
* @return string (binary)
public function getKey() {
return $this->key;
public function getNonce() {
return $this->nonce;
public function getData() {
return $this->data;