Ejemplo n.º 1
0
 /**
  * Initializes EntityAuthData with the auth data of a user or a platform. While the parameters $socialRecord and
  * $accountKeyPair are mandatory, the $personalKeyPair is optional and may be omitted.
  * 
  * @param $socialRecord SocialRecord The SocialRecord of the entity
  * @param $accountKeyPair KeyPair The accountKeyPair for the entity
  * @param $personalKeyPair KeyPair The personalKeyPair for the entity. OPTIONAL!
  */
 public function __construct(SocialRecord $socialRecord, KeyPair $accountKeyPair, KeyPair $personalKeyPair = NULL)
 {
     $this->globalID = $socialRecord->getGlobalID();
     $this->socialRecord = $socialRecord;
     $this->personalKeyPair = $personalKeyPair;
     $this->accountKeyPair = $accountKeyPair;
 }