%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/Basis/src/Basis/Event/
Upload File :
Create Path :
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/Basis/src/Basis/Event/Event.php

<?php
/**
 * Created by PhpStorm.
 * User: juliangilles
 * Date: 17.03.14
 * Time: 11:42
 */

namespace Basis\Event;

use Zend\Json\Json;


abstract class Event
{

    protected $_name = null;

    protected $_version = null;

    protected $_params = null;

    protected $_entityid = null;

    public function __construct($name)
    {
        $this->_name = $name;
    }

    public function setName($name)
    {
        $this->_name = $name;
    }

    public function getName()
    {
        return $this->_name;
    }

    public function setVersion($version)
    {
        $this->_version = $version;
    }

    public function getVersion()
    {
        return $this->_version;
    }

    public function setParams(array $params)
    {
        $this->_params = \Zend\Json\Json::encode($params);
        }

    public function setEntityId($id)
    {
        $this->_entityid = $id;
    }

    public function getEntityId()
    {
        return $this->_entityid;
    }

    public function getParams($asJson = true)
    {
        if ($asJson) {
            return $this->_params;
        }
        return \Zend\Json\Json::decode($this->_params);
    }
} 

Zerion Mini Shell 1.0