<?php
/**
* Shopware 5
* Copyright (c) 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.
*/
namespace Shopware\Models\Site;
use Shopware\Components\Model\ModelEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* Shopware Model Site
*
* This is the model for the Site module, which represents a single site of the shop.
*
* @ORM\Entity
* @ORM\Table(name="s_cms_static_groups")
*/
class Group extends ModelEntity
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string $name
* @ORM\Column(name="name", type="string", nullable=false)
*/
private $name;
/**
* @var string $key
* @ORM\Column(name="`key`", type="string", nullable=false)
*/
private $key;
/**
* @var boolean $active
* @ORM\Column(name="active", type="boolean", nullable=false)
*/
private $active = true;
/**
* @ORM\ManyToOne(targetEntity="Shopware\Models\Site\Group")
* @ORM\JoinColumn(name="mapping_id", nullable=true, referencedColumnName="id")
*/
private $mapping;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return mixed
*/
public function getMapping()
{
return $this->mapping;
}
/**
* @param $mapping
*/
public function setMapping($mapping)
{
$this->mapping = $mapping;
}
/**
* @return boolean
*/
public function getActive()
{
return $this->active;
}
/**
* @param boolean $active
*/
public function setActive($active)
{
$this->active = $active;
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Group.php | 2016-11-07 16:00 | 3 KB | 76129f60960:kunden | -xw-x----- | |
| Repository.php | 2016-11-07 16:00 | 8.27 KB | 76129f60960:kunden | -xw-x----- | |
| Site.php | 2016-11-07 16:00 | 11.78 KB | 76129f60960:kunden | -xw-x----- | |