mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-27 00:28:47 +00:00
32 lines
599 B
PHP
32 lines
599 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
class WSAPP_BaseModel {
|
|
protected $data;
|
|
|
|
function __construct($values = array()) {
|
|
$this->data = $values;
|
|
}
|
|
|
|
public function getData(){
|
|
return $this->data;
|
|
}
|
|
|
|
public function setData($values){
|
|
$this->data = $values;
|
|
return $this;
|
|
}
|
|
|
|
public function set($key,$value){
|
|
$this->data[$key] = $value;
|
|
return $this;
|
|
}
|
|
|
|
public function get($key){
|
|
return $this->data[$key];
|
|
}
|
|
|
|
}
|
|
?>
|