for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the ekino Drupal Debug project.
*
* (c) ekino
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ekino\Drupal\Debug\Extension\Model;
abstract class AbstractCustomExtension implements CustomExtensionInterface
{
/**
* @var string
protected $rootPath;
protected $machineName;
* @param string $rootPath
* @param string $machineName
public function __construct(string $rootPath, string $machineName)
$this->rootPath = $rootPath;
$this->machineName = $machineName;
}
* @return string
public function getRootPath(): string
return $this->rootPath;
public function getMachineName(): string
return $this->machineName;
* {@inheritdoc}
public function serialize(): ?string
return \serialize(array(
$this->rootPath,
$this->machineName,
));
public function unserialize($serialized): void
list($this->rootPath, $this->machineName) = \unserialize($serialized);