for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ThemeBundle\Model;
/**
* @author Kamil Kokot <[email protected]>
class Theme implements ThemeInterface
{
* @var string
protected $name;
protected $slug;
protected $path;
protected $description;
* @var array
protected $parentsSlugs;
protected $code;
* {@inheritdoc}
public function getId()
return $this->getSlug();
}
public function getName()
return $this->name;
public function setName($name)
$this->name = $name;
public function getSlug()
return $this->slug;
public function setSlug($slug)
$this->slug = $slug;
$this->code = substr(md5($slug), 0, 8);
public function getPath()
return $this->path;
public function setPath($path)
$this->path = $path;
public function getDescription()
return $this->description;
public function setDescription($description)
$this->description = $description;
public function getParentsSlugs()
return $this->parentsSlugs;
public function setParentsSlugs(array $parentsSlugs)
$this->parentsSlugs = $parentsSlugs;
public function getCode()
return $this->code;