id = $id; $this->createdAt = $createdAt; $this->expiresAt = $expiresAt; $this->base64ImageData = $base64ImageData; $this->identity = $identity; } /** * @return string */ public function getId() { return $this->id; } /** * @return string */ public function getCreatedAt() { return $this->createdAt; } /** * @return string */ public function getExpiresAt() { return $this->expiresAt; } /** * @return string */ public function getBase64ImageData() { return $this->base64ImageData; } /** * @return Identity */ public function getIdentity() { return $this->identity; } /** * @param $array * * @return EnrollmentToken */ public static function fromArray($array) { $id = $array['id'] ?: null; $createdAt = $array['createdAt'] ?: null; $expiresAt = $array['expiresAt'] ?: null; $base64ImageData = $array['base64ImageData'] ?: null; $identity = Identity::fromArray($array['identity']); return new EnrollmentToken($id, $createdAt, $expiresAt, $base64ImageData, $identity); } }