1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65:
<?php
class Keyword
{
private $id;
private $name;
private $rewrited_name;
public function set_id($id)
{
$this->id = $id;
}
public function get_id()
{
return $this->id;
}
public function set_name($name)
{
$this->name = $name;
}
public function get_name()
{
return $this->name;
}
public function set_rewrited_name($rewrited_name)
{
$this->rewrited_name = $rewrited_name;
}
public function get_rewrited_name()
{
return $this->rewrited_name;
}
public function get_properties()
{
return array(
'id' => $this->get_id(),
'name' => $this->get_name(),
'rewrited_name' => $this->get_rewrited_name(),
);
}
public function set_properties(array $properties)
{
$this->set_id($properties['id']);
$this->set_name($properties['name']);
$this->set_rewrited_name($properties['rewrited_name']);
}
}
?>