19 lines
322 B
PHP
19 lines
322 B
PHP
<?php
|
|
|
|
namespace app\models\zm;
|
|
|
|
class Event
|
|
{
|
|
public $id;
|
|
public $monitor_id;
|
|
public $start_time;
|
|
public $end_time;
|
|
|
|
public function __construct($json)
|
|
{
|
|
$this->id = $json['Id'];
|
|
$this->monitor_id = $json['MonitorId'];
|
|
$this->start_time = $json['StartDateTime'];
|
|
$this->end_time = $json['EndDateTime'];
|
|
}
|
|
} |