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 $path;
* @var array
protected $authors = [];
protected $title;
protected $description;
protected $parentsNames = [];
protected $code;
* {@inheritdoc}
public function getId()
return $this->getName();
}
public function getName()
return $this->name;
public function setName($name)
$this->name = $name;
$this->code = substr(md5($name), 0, 8);
public function getPath()
return $this->path;
public function setPath($path)
$this->path = $path;
public function getAuthors()
return $this->authors;
public function setAuthors(array $authors)
$this->authors = $authors;
public function getTitle()
return $this->title;
public function setTitle($title)
$this->title = $title;
public function getDescription()
return $this->description;
public function setDescription($description)
$this->description = $description;
public function getParentsNames()
return $this->parentsNames;
public function setParentsNames(array $parentsNames)
$this->parentsNames = $parentsNames;
public function getCode()
return $this->code;