/www/shop/engine/Shopware/Models/Log/Log.php
PHP | 297 lines | 92 code | 27 blank | 178 comment | 0 complexity | f0e49bc088eec9d0c1fdf457fb89f2d8 MD5 | raw file
Possible License(s): AGPL-3.0, MIT, BSD-3-Clause, LGPL-2.1, LGPL-3.0
- <?php
- /**
- * Shopware 4.0
- * Copyright 2012 shopware AG
- *
- * According to our dual licensing model, this program can be used either
- * under the terms of the GNU Affero General Public License, version 3,
- * or under a proprietary license.
- *
- * The texts of the GNU Affero General Public License with an additional
- * permission and of our proprietary license can be found at and
- * in the LICENSE file you have received along with this program.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * "Shopware" is a registered trademark of shopware AG.
- * The licensing of the program under the AGPLv3 does not imply a
- * trademark license. Therefore any rights, title and interest in
- * our trademarks remain entirely with us.
- *
- * @category Shopware
- * @package Shopware_Models
- * @subpackage Log
- * @copyright Copyright (c) 2012, shopware AG (http://www.shopware.de)
- * @version $Id$
- * @author Patrick Stahl
- * @author $Author$
- */
- namespace Shopware\Models\Log;
- use Shopware\Components\Model\ModelEntity,
- Doctrine\ORM\Mapping AS ORM;
- /**
- * Shopware Model Log
- *
- * This is the model for the premium-module, which contains a single row from s_addon_premiums.
- *
- * @ORM\Entity
- * @ORM\Table(name="s_core_log")
- */
- class Log extends ModelEntity
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer", nullable=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var string $type
- *
- * @ORM\Column(name="type", type="string", length=255, nullable=false)
- */
- private $type;
- /**
- * @var string $key
- *
- * @ORM\Column(name="`key`", type="string", length=255, nullable=false)
- */
- private $key;
- /**
- * @var string $text
- *
- * @ORM\Column(name="text", type="text", nullable=false)
- */
- private $text;
- /**
- * @var datetime $date
- *
- * @ORM\Column(name="date", type="datetime", nullable=false)
- */
- private $date;
- /**
- * @var string $user
- *
- * @ORM\Column(name="user", type="string", length=255, nullable=false)
- */
- private $user;
- /**
- * @var string $ipAddress
- *
- * @ORM\Column(name="ip_address", type="string", length=255, nullable=false)
- */
- private $ipAddress;
- /**
- * @var string $userAgent
- *
- * @ORM\Column(name="user_agent", type="string", length=255, nullable=false)
- */
- private $userAgent;
- /**
- * @var string $value4
- *
- * @ORM\Column(name="value4", type="string", length=255, nullable=false)
- */
- private $value4;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set type
- *
- * @param string $type
- * @return Log
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Set key
- *
- * @param string $key
- * @return Log
- */
- public function setKey($key)
- {
- $this->key = $key;
- return $this;
- }
- /**
- * Get key
- *
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
- /**
- * Set text
- *
- * @param string $text
- * @return Log
- */
- public function setText($text)
- {
- $this->text = $text;
- return $this;
- }
- /**
- * Get text
- *
- * @return string
- */
- public function getText()
- {
- return $this->text;
- }
- /**
- * Set date
- *
- * @param \DateTime $date
- * @return Log
- */
- public function setDate($date)
- {
- $this->date = $date;
- return $this;
- }
- /**
- * Get date
- *
- * @return \DateTime
- */
- public function getDate()
- {
- return $this->date;
- }
- /**
- * Set user
- *
- * @param string $user
- * @return Log
- */
- public function setUser($user)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * Get user
- *
- * @return string
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * Set ip_address
- *
- * @param string $ipAddress
- * @return Log
- */
- public function setIpAddress($ipAddress)
- {
- $this->ipAddress = $ipAddress;
- return $this;
- }
- /**
- * Get ipAddress
- *
- * @return string
- */
- public function getIpAddress()
- {
- return $this->ipAddress;
- }
- /**
- * Set userAgent
- *
- * @param string $userAgent
- * @return Log
- */
- public function setUserAgent($userAgent)
- {
- $this->userAgent = $userAgent;
- return $this;
- }
- /**
- * Get userAgent
- *
- * @return string
- */
- public function getUserAgent()
- {
- return $this->userAgent;
- }
- /**
- * Set value4
- *
- * @param string $value4
- * @return Log
- */
- public function setValue4($value4)
- {
- $this->value4 = $value4;
- return $this;
- }
- /**
- * Get value4
- *
- * @return string
- */
- public function getValue4()
- {
- return $this->value4;
- }
- }