PHP Classes

File: src/Model/Event.php

Recommend this page to a friend!
  Classes of Joseluis Laso   PHP Stats Graphs   src/Model/Event.php   Download  
File: src/Model/Event.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Stats Graphs
Generate SVG charts from sample data
Author: By
Last change:
Date: 8 years ago
Size: 933 bytes
 

Contents

Class file image Download
<?php

namespace JLaso\SimpleStats\Model;

class
Event
{
   
/** @var string */
   
protected $eventName;
   
/** @var int stored as epoch time */
   
protected $date;
   
/** @var array */
   
protected $data;

   
/**
     * @return string
     */
   
public function getEventName()
    {
        return
$this->eventName;
    }

   
/**
     * @param string $eventName
     */
   
public function setEventName($eventName)
    {
       
$this->eventName = $eventName;
    }

   
/**
     * @return int
     */
   
public function getDate()
    {
        return
$this->date;
    }

   
/**
     * @param int $date
     */
   
public function setDate($date)
    {
       
$this->date = $date;
    }

   
/**
     * @return array
     */
   
public function getData()
    {
        return
$this->data;
    }

   
/**
     * @param array $data
     */
   
public function setData($data)
    {
       
$this->data = $data;
    }


}