for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Passbook package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Passbook\Apple;
/**
* NFC
class Nfc implements NfcInterface
{
* NFC message
* @var string
protected $message = '';
* Encryption Public Key
protected $encryptionPublicKey = '';
public function __construct($message, $encryptionPublicKey)
$this->setMessage($message);
$this->setEncryptionPublicKey($encryptionPublicKey);
}
* {@inheritdoc}
public function setMessage($message)
$this->message = $message;
return $this;
public function setEncryptionPublicKey($encryptionPublicKey)
$this->encryptionPublicKey = $encryptionPublicKey;
public function toArray()
$array = [
'message' => $this->getMessage(),
'encryptionPublicKey' => $this->getEncryptionPublicKey()
];
return $array;
public function getMessage()
return $this->message;
public function getEncryptionPublicKey()
return $this->encryptionPublicKey;