src/Model/RoutingDefinition/AbstractBundleRoutingDefinition.php
<?php
namespace PiotrPolak\ConditionalRoutingBundle\Model\RoutingDefinition;
/**
* AbstractBundleRoutingDefinition makes the usage of BundleRoutingDefinitionInterface easier.
* Any extending method should implement the resource resolving BundleRoutingDefinitionInterface::getResource() method.
*
* @author Piotr Polak <piotr@polak.ro>
*/
abstract class AbstractBundleRoutingDefinition implements BundleRoutingDefinitionInterface
{
/** @var string */
protected $bundleName;
/** @var string */
protected $type;
/**
* DefaultBundleRoutingDefinition constructor.
* @param $bundleName
* @param string $type
*/
public function __construct($bundleName, $type)
{
$this->bundleName = $bundleName;
$this->type = $type;
}
/**
* {@inheritdoc}
*/
public function getBundleName()
{
return $this->bundleName;
}
/**
* {@inheritdoc}
*/
public function getType()
{
return $this->type;
}
}