forked from La_Bureautique/zeg1jeux
44 lines
650 B
PHP
44 lines
650 B
PHP
|
<?php
|
||
|
|
||
|
class GchangeRating {
|
||
|
|
||
|
private $senderPubkey;
|
||
|
|
||
|
private $receiverPubkey;
|
||
|
|
||
|
private $level;
|
||
|
|
||
|
private $time;
|
||
|
|
||
|
|
||
|
public function __construct ($gchangeObject) {
|
||
|
|
||
|
$this->senderPubkey = $gchangeObject->_source->issuer;
|
||
|
|
||
|
$this->receiverPubkey = $gchangeObject->_source->id;
|
||
|
|
||
|
$this->level = $gchangeObject->_source->level;
|
||
|
|
||
|
$this->time = $gchangeObject->_source->time;
|
||
|
}
|
||
|
|
||
|
public function getLevel () {
|
||
|
|
||
|
return $this->level;
|
||
|
}
|
||
|
|
||
|
public function getSenderPubkey () {
|
||
|
|
||
|
return $this->senderPubkey;
|
||
|
}
|
||
|
|
||
|
public function getReceiverPubkey () {
|
||
|
|
||
|
return $this->receiverPubkey;
|
||
|
}
|
||
|
|
||
|
public function getTime () {
|
||
|
|
||
|
return $this->time;
|
||
|
}
|
||
|
}
|