Jarves\Configuration\Bundle::__construct PHP Method

__construct() public method

public __construct ( string | Symfony\Component\HttpKernel\Bundle\BundleInterface $bundleClass, null $jarves = null, DOMElement $bundleDoc = null )
$bundleClass string | Symfony\Component\HttpKernel\Bundle\BundleInterface
$jarves null
$bundleDoc DOMElement
    public function __construct($bundleClass, $jarves = null, \DOMElement $bundleDoc = null)
    {
        if (!$bundleClass) {
            throw new \InvalidArgumentException('$bundleClass needs to be set.');
        }
        parent::__construct(null, $jarves);
        $this->element = $bundleDoc;
        if ($bundleClass instanceof BundleInterface) {
            $bundleClass = get_class($bundleClass);
        }
        $this->bundleClass = $bundleClass;
        $this->bundleName = $bundleClass;
        if (false !== ($pos = strrpos($bundleClass, '\\'))) {
            $this->bundleName = substr($bundleClass, $pos + 1);
        }
        $this->rootName = 'bundle';
        $this->setJarves($jarves);
    }