fix log getters

This commit is contained in:
leogermani 2019-10-23 16:49:27 -03:00
parent c2db743a1f
commit a8a52f5518
1 changed files with 13 additions and 13 deletions

View File

@ -94,7 +94,7 @@ class Log extends Entity {
function get_date() {
return $this->get_mapped_property( 'date' );
}
/**
* Return the log slug
*
@ -134,7 +134,7 @@ class Log extends Entity {
public function get_old_value() {
return $this->get_mapped_property( 'old_value' );
}
/**
* Get new value of log entry object
*
@ -192,7 +192,7 @@ class Log extends Entity {
public function set_old_value( $value ) {
$this->set_mapped_property( 'old_value', $value );
}
/**
* Set new value of log entry
*
@ -210,19 +210,19 @@ class Log extends Entity {
public function get_log_diffs(){
return $this->get_mapped_property('log_diffs');
}
public function get_object_type() {
$this->get_mapped_property('object_type');
return $this->get_mapped_property('object_type');
}
public function set_object_type($value) {
$this->set_mapped_property('object_type', $value);
}
public function get_object_id() {
$this->get_mapped_property('object_id');
return $this->get_mapped_property('object_id');
}
public function set_object_id($value) {
$this->set_mapped_property('object_id', $value);
}
@ -240,11 +240,11 @@ class Log extends Entity {
public function get_item_id(){
return $this->get_mapped_property('item_id');
}
public function get_action() {
$this->get_mapped_property('action');
return $this->get_mapped_property('action');
}
public function set_action($value) {
$this->set_mapped_property('action', $value);
}
@ -258,4 +258,4 @@ class Log extends Entity {
return $repository->approve( $this );
}
}
}