Example #1
0
 /**
  * Constructor.
  *
  * @param CEDRP_Reaction|object $reaction  Reaction object.
  */
 public function __construct($reaction)
 {
     foreach (get_object_vars($reaction) as $key => $value) {
         $this->{$key} = $value;
     }
     $this->reaction_type = CEDRP_Reaction_Type::get_instance($this->reaction_type);
 }
Example #2
0
function get_reaction_type($reaction_type)
{
    return CEDRP_Reaction_Type::get_instance($reaction_type);
}