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\ResourceBundle\DependencyInjection\Configuration;
/**
* @author Kamil Kokot <[email protected]>
final class SyliusResource extends AbstractSyliusResource
{
* @var string
private $name;
* @var SyliusTranslationResource
private $translationResource;
* @param string $name
* @param string|null $modelClass
* @param string|null $interfaceClass
public function __construct($name, $modelClass = null, $interfaceClass = null)
parent::__construct($modelClass, $interfaceClass);
$this->name = $name;
}
* @return string
public function getName()
return $this->name;
* @return SyliusTranslationResource|null
public function getTranslationResource()
return $this->translationResource;
* @param SyliusTranslationResource $translationResource
* @return $this
public function useTranslationResource(SyliusTranslationResource $translationResource)
$this->translationResource = $translationResource;
return $this;