* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Hook; /** * Class Hook defines hook. */ final class Hook implements HookInterface { /** * @var string */ private $name; /** * @var array */ private $parameters; /** * @param string $name * @param array $parameters */ public function __construct($name, array $parameters = []) { $this->name = $name; $this->parameters = $parameters; } /** * {@inheritdoc} */ public function getName() { return $this->name; } /** * {@inheritdoc} */ public function getParameters() { return $this->parameters; } }